mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
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:
parent
8f6e2c0c85
commit
08ef71a74e
@ -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__()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user