Skip to content

Commit 6307d26

Browse files
committed
refactor(tests): rename tests/30_independant to tests/30_unit
- Fixes typo: 'independant' -> 'unit' - Clarifies test purpose: these are unit tests for individual functions - Aligns with project structure naming conventions - Updates documentation and linter rules to reflect the change
1 parent 3a8ea80 commit 6307d26

14 files changed

+11
-11
lines changed

.ai/rules/pytest_structure.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ alwaysApply: false
88
### PyTest Structure
99

1010
## Packages
11-
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/0_tooling/`, `tests/3_independant/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
11+
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/10_tooling/`, `tests/30_unit/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
1212
- Use `tests/utils/` to colocate utilities that are generally helpful for tests or used in multiple test files.
1313

1414
## Imports

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ See: `pyproject.toml` (configs/tasks), `ROADMAP.md` (roadmap)
6565
### PyTest Structure
6666

6767
## Packages
68-
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/0_tooling/`, `tests/3_independant/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
68+
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/0_tooling/`, `tests/3_unit/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
6969
- Use `tests/utils/` to colocate utilities that are generally helpful for tests or used in multiple test files.
7070

7171
## Imports

.cursor/rules/pytest_structure.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ alwaysApply: false
88
### PyTest Structure
99

1010
## Packages
11-
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/0_tooling/`, `tests/3_independant/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
11+
- Only `tests/` and `tests/utils/` should have `__init__.py`. Do NOT add `__init__.py` to test subdirectories (e.g., `tests/0_tooling/`, `tests/3_unit/`, `tests/5_core/`, etc.). Test subdirectories are not Python packages.
1212
- Use `tests/utils/` to colocate utilities that are generally helpful for tests or used in multiple test files.
1313

1414
## Imports

tests/30_independant/test_atest_isolated_logging.py renamed to tests/30_unit/test_atest_isolated_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tests/30_independant/test_atest_isolated_logging.py
1+
# tests/30_unit/test_atest_isolated_logging.py
22
"""Tests for atest_isolated_logging fixture.
33
44
Tests for atest_isolated_logging, including logger state reset, isolation

tests/30_independant/test_atest_logging_level_testing.py renamed to tests/30_unit/test_atest_logging_level_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tests/30_independant/test_atest_logging_level_testing.py
1+
# tests/30_unit/test_atest_logging_level_testing.py
22
"""Tests for atest_logging_level_testing fixture.
33
44
Tests for atest_logging_level_testing, including level change tracking,

tests/30_independant/test_atest_logging_test_level.py renamed to tests/30_unit/test_atest_logging_test_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tests/30_independant/test_atest_logging_test_level.py
1+
# tests/30_unit/test_atest_logging_test_level.py
22
"""Tests for atest_logging_test_level fixture.
33
44
Tests for atest_logging_test_level, including downgrade prevention and
File renamed without changes.
File renamed without changes.

tests/30_independant/test_ensure_stitched_script_up_to_date.py renamed to tests/30_unit/test_ensure_stitched_script_up_to_date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tests/30_independant/test_ensure_stitched_script_up_to_date.py
1+
# tests/30_unit/test_ensure_stitched_script_up_to_date.py
22
"""Tests for ensure_stitched_script_up_to_date function.
33
44
Tests for ensure_stitched_script_up_to_date, including optional script_name

tests/30_independant/test_ensure_zipapp_up_to_date.py renamed to tests/30_unit/test_ensure_zipapp_up_to_date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tests/30_independant/test_ensure_zipapp_up_to_date.py
1+
# tests/30_unit/test_ensure_zipapp_up_to_date.py
22
"""Tests for ensure_zipapp_up_to_date function.
33
44
Tests for ensure_zipapp_up_to_date, including optional script_name

0 commit comments

Comments
 (0)