From a2e02f3acbdf04e45d273740f8c72f699cf8612b Mon Sep 17 00:00:00 2001 From: codeasier Date: Sun, 12 Apr 2026 17:56:44 +0800 Subject: [PATCH] refactor: reorganize tests into subdirectories matching src structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move query-related tests to tests/query/ and model-related tests to tests/models/ to align with the src/pt_snap_cli/ directory structure. No test content or imports were modified — all imports use absolute paths (from pt_snap_cli.xxx import ...) that work unchanged. --- tests/models/__init__.py | 0 tests/{ => models}/test_block.py | 0 tests/{ => models}/test_enums.py | 0 tests/{ => models}/test_event.py | 0 tests/query/__init__.py | 0 tests/{test_query_builder.py => query/test_builder.py} | 0 tests/{test_query_condition.py => query/test_condition.py} | 0 tests/{test_query_config.py => query/test_config.py} | 0 tests/{test_query_executor.py => query/test_executor.py} | 0 tests/{test_query_mapper.py => query/test_mapper.py} | 0 tests/{test_query_registry.py => query/test_registry.py} | 0 11 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/models/__init__.py rename tests/{ => models}/test_block.py (100%) rename tests/{ => models}/test_enums.py (100%) rename tests/{ => models}/test_event.py (100%) create mode 100644 tests/query/__init__.py rename tests/{test_query_builder.py => query/test_builder.py} (100%) rename tests/{test_query_condition.py => query/test_condition.py} (100%) rename tests/{test_query_config.py => query/test_config.py} (100%) rename tests/{test_query_executor.py => query/test_executor.py} (100%) rename tests/{test_query_mapper.py => query/test_mapper.py} (100%) rename tests/{test_query_registry.py => query/test_registry.py} (100%) diff --git a/tests/models/__init__.py b/tests/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_block.py b/tests/models/test_block.py similarity index 100% rename from tests/test_block.py rename to tests/models/test_block.py diff --git a/tests/test_enums.py b/tests/models/test_enums.py similarity index 100% rename from tests/test_enums.py rename to tests/models/test_enums.py diff --git a/tests/test_event.py b/tests/models/test_event.py similarity index 100% rename from tests/test_event.py rename to tests/models/test_event.py diff --git a/tests/query/__init__.py b/tests/query/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_query_builder.py b/tests/query/test_builder.py similarity index 100% rename from tests/test_query_builder.py rename to tests/query/test_builder.py diff --git a/tests/test_query_condition.py b/tests/query/test_condition.py similarity index 100% rename from tests/test_query_condition.py rename to tests/query/test_condition.py diff --git a/tests/test_query_config.py b/tests/query/test_config.py similarity index 100% rename from tests/test_query_config.py rename to tests/query/test_config.py diff --git a/tests/test_query_executor.py b/tests/query/test_executor.py similarity index 100% rename from tests/test_query_executor.py rename to tests/query/test_executor.py diff --git a/tests/test_query_mapper.py b/tests/query/test_mapper.py similarity index 100% rename from tests/test_query_mapper.py rename to tests/query/test_mapper.py diff --git a/tests/test_query_registry.py b/tests/query/test_registry.py similarity index 100% rename from tests/test_query_registry.py rename to tests/query/test_registry.py