Skip to content

test(cli): tests mirror package directories and trim root conftest - #2830

Merged
dan-petty merged 2 commits into
mainfrom
test/1313-tests-mirror-source-tree
Oct 31, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/1313-tests-mirror-source-tree

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Move test files from the flat tests/ root to directories mirroring src/devops_cli/ or tests/invariants/.
  • Add an empty init.py to each test directory.
  • Extract domain fixtures from tests/conftest.py into modules under tests/support/.
  • Keep only hermetic floor fixtures, environment resets, network block, and bootstrap plugin registration in root tests/conftest.py.
  • Add layout ratchet in tests/invariants/test_source_tree.py with zero ceilings.
  • Update pre-commit private key and snapshot whitespace exclusions.

Closes #1313

…ermetic floor (#1313)

Move test files from the flat tests/ root to mirror directories matching the src/devops_cli package layout or tests/invariants/.
Add empty __init__.py files to each test package directory.
Extract domain and fake fixtures from tests/conftest.py to tests/support/.
Keep only hermetic floor fixtures, environment resets, network block, and bootstrap plugin registration in root tests/conftest.py.
Enforce layout with ratchet tests in tests/invariants/test_source_tree.py.
Update .pre-commit-config.yaml private key and snapshot exclusions.

Closes #1313
@dan-petty dan-petty added type/test Type test: a new or changed test scope/cli Core CLI framework, Typer subcommands, options, and tables labels Oct 31, 2026
@dan-petty dan-petty changed the title test(cli): tests mirror devops_cli packages and root conftest holds hermetic floor test(cli): tests mirror package directories and trim root conftest Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 04:44
@dan-petty
dan-petty merged commit 513bb31 into main Oct 31, 2026
28 of 30 checks passed
@dan-petty
dan-petty deleted the test/1313-tests-mirror-source-tree branch October 31, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/cli Core CLI framework, Typer subcommands, options, and tables type/test Type test: a new or changed test

Projects

None yet

1 participant