From 1a56f5aaf99c88255c606f58a552eb9ebcb99eb5 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:59:21 +1100 Subject: [PATCH] tidy(nodes): move node tests to parent dir Thanks to the resolution of the import vs union issue, we can put tests anywhere. --- tests/aa_nodes/__init__.py | 0 tests/{aa_nodes => }/test_graph_execution_state.py | 0 tests/{aa_nodes => }/test_invoker.py | 0 tests/{aa_nodes => }/test_node_graph.py | 0 tests/{aa_nodes => }/test_nodes.py | 0 tests/{aa_nodes => }/test_session_queue.py | 3 ++- 6 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 tests/aa_nodes/__init__.py rename tests/{aa_nodes => }/test_graph_execution_state.py (100%) rename tests/{aa_nodes => }/test_invoker.py (100%) rename tests/{aa_nodes => }/test_node_graph.py (100%) rename tests/{aa_nodes => }/test_nodes.py (100%) rename tests/{aa_nodes => }/test_session_queue.py (99%) diff --git a/tests/aa_nodes/__init__.py b/tests/aa_nodes/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/aa_nodes/test_graph_execution_state.py b/tests/test_graph_execution_state.py similarity index 100% rename from tests/aa_nodes/test_graph_execution_state.py rename to tests/test_graph_execution_state.py diff --git a/tests/aa_nodes/test_invoker.py b/tests/test_invoker.py similarity index 100% rename from tests/aa_nodes/test_invoker.py rename to tests/test_invoker.py diff --git a/tests/aa_nodes/test_node_graph.py b/tests/test_node_graph.py similarity index 100% rename from tests/aa_nodes/test_node_graph.py rename to tests/test_node_graph.py diff --git a/tests/aa_nodes/test_nodes.py b/tests/test_nodes.py similarity index 100% rename from tests/aa_nodes/test_nodes.py rename to tests/test_nodes.py diff --git a/tests/aa_nodes/test_session_queue.py b/tests/test_session_queue.py similarity index 99% rename from tests/aa_nodes/test_session_queue.py rename to tests/test_session_queue.py index bfe6444de8..48b980539c 100644 --- a/tests/aa_nodes/test_session_queue.py +++ b/tests/test_session_queue.py @@ -11,7 +11,8 @@ from invokeai.app.services.session_queue.session_queue_common import ( prepare_values_to_insert, ) from invokeai.app.services.shared.graph import Graph, GraphExecutionState -from tests.aa_nodes.test_nodes import PromptTestInvocation + +from .test_nodes import PromptTestInvocation @pytest.fixture