From 756cb9c27e68c3da4961c4c768f88751b6aeaffe Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 22 Dec 2023 23:58:59 +1100 Subject: [PATCH] fix(tests): remove graph library from test fixtures --- tests/aa_nodes/test_graph_execution_state.py | 2 -- tests/aa_nodes/test_invoker.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/aa_nodes/test_graph_execution_state.py b/tests/aa_nodes/test_graph_execution_state.py index 04dc6af621..b7bf7771a6 100644 --- a/tests/aa_nodes/test_graph_execution_state.py +++ b/tests/aa_nodes/test_graph_execution_state.py @@ -26,7 +26,6 @@ from invokeai.app.services.shared.graph import ( Graph, GraphExecutionState, IterateInvocation, - LibraryGraph, ) from invokeai.backend.util.logging import InvokeAILogger from tests.fixtures.sqlite_database import create_mock_sqlite_database @@ -61,7 +60,6 @@ def mock_services() -> InvocationServices: configuration=configuration, events=TestEventService(), graph_execution_manager=graph_execution_manager, - graph_library=SqliteItemStorage[LibraryGraph](db=db, table_name="graphs"), image_files=None, # type: ignore image_records=None, # type: ignore images=None, # type: ignore diff --git a/tests/aa_nodes/test_invoker.py b/tests/aa_nodes/test_invoker.py index 288beb6e0b..63908193fd 100644 --- a/tests/aa_nodes/test_invoker.py +++ b/tests/aa_nodes/test_invoker.py @@ -24,7 +24,7 @@ from invokeai.app.services.invocation_stats.invocation_stats_default import Invo from invokeai.app.services.invoker import Invoker from invokeai.app.services.item_storage.item_storage_sqlite import SqliteItemStorage from invokeai.app.services.session_queue.session_queue_common import DEFAULT_QUEUE_ID -from invokeai.app.services.shared.graph import Graph, GraphExecutionState, GraphInvocation, LibraryGraph +from invokeai.app.services.shared.graph import Graph, GraphExecutionState, GraphInvocation @pytest.fixture @@ -66,7 +66,6 @@ def mock_services() -> InvocationServices: configuration=configuration, events=TestEventService(), graph_execution_manager=graph_execution_manager, - graph_library=SqliteItemStorage[LibraryGraph](db=db, table_name="graphs"), image_files=None, # type: ignore image_records=None, # type: ignore images=None, # type: ignore