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:
|
class TestEvent:
|
||||||
event_name: str
|
event_name: str
|
||||||
payload: Any
|
payload: Any
|
||||||
|
__test__ = False # not a pytest test case
|
||||||
|
|
||||||
def __init__(self, event_name: str, payload: Any):
|
def __init__(self, event_name: str, payload: Any):
|
||||||
self.event_name = event_name
|
self.event_name = event_name
|
||||||
@ -127,6 +128,7 @@ class TestEvent:
|
|||||||
|
|
||||||
class TestEventService(EventServiceBase):
|
class TestEventService(EventServiceBase):
|
||||||
events: list
|
events: list
|
||||||
|
__test__ = False # not a pytest test case
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -10,6 +10,7 @@ from invokeai.backend.util.logging import InvokeAILogger
|
|||||||
class TestModel(BaseModel):
|
class TestModel(BaseModel):
|
||||||
id: str = Field(description="ID")
|
id: str = Field(description="ID")
|
||||||
name: str = Field(description="Name")
|
name: str = Field(description="Name")
|
||||||
|
__test__ = False # not a pytest test case
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
Loading…
Reference in New Issue
Block a user