Skip to content

Commit

Permalink
Skip the test_generator function for pytest
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Jan 23, 2024
1 parent 0d95d1e commit e1480ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acto/input/test_generators/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from functools import wraps
from typing import Callable, Literal, Optional

import pytest

from acto.input.k8s_schemas import KubernetesObjectSchema
from acto.input.testcase import TestCase
from acto.schema import (
Expand Down Expand Up @@ -130,6 +132,7 @@ def wrapped_func(*args, **kwargs):
return wrapped_func


@pytest.mark.skip(reason="not a test")
def test_generator(
k8s_schema_name: Optional[str] = None,
property_name: Optional[str] = None,
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ markers = [
"all_bug_reproduction: mark a test to reproduce all bugs in the suite",
"kubernetes_engine: mark a test for cluster set up",
]
python_functions = "test_*"
python_classes = ""

[tool.pylint."messages control"]
disable = [
Expand Down

0 comments on commit e1480ca

Please sign in to comment.