From fc7b2bd2362f030fbab59e5debee9c9a4c3d831c Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Tue, 12 May 2026 00:47:00 +0800 Subject: [PATCH] refactor(tests): split into tests/unit and tests/tools --- tests/tools/__init__.py | 0 tests/{ => tools}/conftest.py | 0 tests/{ => tools}/test_balabit_adapter.py | 0 tests/{ => tools}/test_eval_metrics.py | 0 tests/{ => tools}/test_models.py | 0 tests/{ => tools}/test_scroll_collector.py | 0 tests/{ => tools}/test_scroll_models.py | 0 tests/{ => tools}/test_scroll_trainer.py | 0 tests/{ => tools}/test_server.py | 0 tests/{ => tools}/test_trainer.py | 0 tests/unit/__init__.py | 0 tests/unit/conftest.py | 1 + tests/{ => unit}/test_coord.py | 0 tests/{ => unit}/test_generator.py | 0 tests/{ => unit}/test_scroll_generator.py | 0 15 files changed, 1 insertion(+) create mode 100644 tests/tools/__init__.py rename tests/{ => tools}/conftest.py (100%) rename tests/{ => tools}/test_balabit_adapter.py (100%) rename tests/{ => tools}/test_eval_metrics.py (100%) rename tests/{ => tools}/test_models.py (100%) rename tests/{ => tools}/test_scroll_collector.py (100%) rename tests/{ => tools}/test_scroll_models.py (100%) rename tests/{ => tools}/test_scroll_trainer.py (100%) rename tests/{ => tools}/test_server.py (100%) rename tests/{ => tools}/test_trainer.py (100%) create mode 100644 tests/unit/__init__.py create mode 100644 tests/unit/conftest.py rename tests/{ => unit}/test_coord.py (100%) rename tests/{ => unit}/test_generator.py (100%) rename tests/{ => unit}/test_scroll_generator.py (100%) diff --git a/tests/tools/__init__.py b/tests/tools/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/conftest.py b/tests/tools/conftest.py similarity index 100% rename from tests/conftest.py rename to tests/tools/conftest.py diff --git a/tests/test_balabit_adapter.py b/tests/tools/test_balabit_adapter.py similarity index 100% rename from tests/test_balabit_adapter.py rename to tests/tools/test_balabit_adapter.py diff --git a/tests/test_eval_metrics.py b/tests/tools/test_eval_metrics.py similarity index 100% rename from tests/test_eval_metrics.py rename to tests/tools/test_eval_metrics.py diff --git a/tests/test_models.py b/tests/tools/test_models.py similarity index 100% rename from tests/test_models.py rename to tests/tools/test_models.py diff --git a/tests/test_scroll_collector.py b/tests/tools/test_scroll_collector.py similarity index 100% rename from tests/test_scroll_collector.py rename to tests/tools/test_scroll_collector.py diff --git a/tests/test_scroll_models.py b/tests/tools/test_scroll_models.py similarity index 100% rename from tests/test_scroll_models.py rename to tests/tools/test_scroll_models.py diff --git a/tests/test_scroll_trainer.py b/tests/tools/test_scroll_trainer.py similarity index 100% rename from tests/test_scroll_trainer.py rename to tests/tools/test_scroll_trainer.py diff --git a/tests/test_server.py b/tests/tools/test_server.py similarity index 100% rename from tests/test_server.py rename to tests/tools/test_server.py diff --git a/tests/test_trainer.py b/tests/tools/test_trainer.py similarity index 100% rename from tests/test_trainer.py rename to tests/tools/test_trainer.py diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py new file mode 100644 index 0000000..7f48be2 --- /dev/null +++ b/tests/unit/conftest.py @@ -0,0 +1 @@ +"""Fixtures for library-only tests (no torch).""" diff --git a/tests/test_coord.py b/tests/unit/test_coord.py similarity index 100% rename from tests/test_coord.py rename to tests/unit/test_coord.py diff --git a/tests/test_generator.py b/tests/unit/test_generator.py similarity index 100% rename from tests/test_generator.py rename to tests/unit/test_generator.py diff --git a/tests/test_scroll_generator.py b/tests/unit/test_scroll_generator.py similarity index 100% rename from tests/test_scroll_generator.py rename to tests/unit/test_scroll_generator.py