Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create pytest suites under the no-mocks policy — real data, temp files, subprocess, pytest-httpserver. USE WHEN adding tests, raising coverage, testing new src/ module, or user forbids mocks.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -36% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -6% | 0% |
unittest.mock, MagicMock, or patch the unit under test. Use real computation, tmp_path, local HTTP servers, subprocess for CLIs.test_*.py mirroring src modules; parametrize variants; fixed RNG seeds.projects/<n>/tests/ or tests/infra_tests/ following existing layout.requires_latex, requires_ollama)bashuv run pytest path/to/test_file.py -v uv run pytest projects/<project>/tests/ --cov=projects/<project>/src --cov-fail-under=90 uv run pytest tests/infra_tests/path/ --cov=infrastructure --cov-fail-under=60
docs/rules/testing_standards.mdOther measured skills in the registry, with their headline benchmark lift.