Spaces:
Build error
Build error
docs: add documentation update section to pytest migration spec
Browse files246 unmodified lines247248249250251252246 unmodified linesThe `pyproject.toml` already has `[tool.pytest.ini_options]` with `testpaths = ["tests"]` and `python_files = "*_test.py"`. No config changes needed.## Out of Scope- Testing actual model inference (all engines mocked)246 unmodified lines247248249250251252253254255256257258259260261262263264265266267268269270271272273274275246 unmodified linesThe `pyproject.toml` already has `[tool.pytest.ini_options]` with `testpaths = ["tests"]` and `python_files = "*_test.py"`. No config changes needed.## Documentation Updates### `AGENTS.md`Update the "Testing Expectations" section to:- Replace "Smoke Tests" description with pytest as the primary test runner- Reference new test file naming convention (`*_test.py`)- Add guidance on writing tests: use fixtures from `conftest.py`, mock engines via `unittest.mock.patch`, prefer assertions over print statements- Remove references to `if __name__ == "__main__":` inline test pattern- Update "Before Merging" checklist to include `uv run pytest tests/ -v`### `README.md`Add a "Running Tests" section after the setup/installation instructions:```bash# Run all testsuv run pytest tests/ -v# Run specific test fileuv run pytest tests/cards_test.py -v# Run with coverageuv run pytest tests/ -v --cov=core --cov=frontend --cov=app.py```## Out of Scope- Testing actual model inference (all engines mocked)
docs/superpowers/specs/2026-06-13-pytest-migration-design.md+23