paper-dynasty-database/app
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
..
routers_v2 fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
card_creation.py Update card_creation.py 2024-02-24 21:36:44 -06:00
db_engine.py feat: add initial test suite with pytest (#28) 2026-03-04 16:35:53 -06:00
db_helpers.py Fix PostgreSQL upsert column names and CSV null handling 2026-01-30 17:28:40 -06:00
dependencies.py fix: correct inverted TESTING env check and leading space in .env (#23) 2026-03-03 21:43:54 +00:00
main.py fix: replace 467 manual db.close() calls with middleware (#30) 2026-03-03 15:52:56 -06:00
player_scouting.py Update player_scouting.py 2023-09-24 19:00:21 -05:00