fix(tests): mark non-test-case classes as such

Because their names start with "test", we need to use `__test__ = False` to tell pytest to not treat them as test cases.
This commit is contained in:
psychedelicious 2023-12-09 14:33:14 +11:00
parent 8f6e2c0c85
commit 08ef71a74e
2 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,7 @@ def create_edge(from_id: str, from_field: str, to_id: str, to_field: str) -> Edg
class TestEvent:
event_name: str
payload: Any
__test__ = False # not a pytest test case
def __init__(self, event_name: str, payload: Any):
self.event_name = event_name
@ -127,6 +128,7 @@ class TestEvent:
class TestEventService(EventServiceBase):
events: list
__test__ = False # not a pytest test case
def __init__(self):
super().__init__()

View File

@ -10,6 +10,7 @@ from invokeai.backend.util.logging import InvokeAILogger
class TestModel(BaseModel):
id: str = Field(description="ID")
name: str = Field(description="Name")
__test__ = False # not a pytest test case
@pytest.fixture