paper-dynasty-database/tests
Cal Corum 64be5eabdc feat: add initial test suite with pytest (#28)
- Add SQLITE_DB_PATH env var to db_engine.py for test isolation
- Create tests/conftest.py with in-memory SQLite fixture and sample data helpers
- Add tests/test_dependencies.py: unit tests for valid_token, mround, param_char, get_req_url
- Add tests/test_card_pricing.py: tests for Player.change_on_sell/buy and get_all_pos
- Add tests/test_api_packs.py: integration tests for GET/POST/DELETE /api/v2/packs
- Add requirements-test.txt with pytest and httpx
- Add test job to CI workflow (build now requires tests to pass first)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 16:35:53 -06:00
..
__init__.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00
conftest.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00
test_api_packs.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00
test_card_pricing.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00
test_dependencies.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00