Run all tests:
pytest tests/Run with verbose output:
pytest tests/ -vRun specific test file:
pytest tests/utils/test_github_api_tools.pyRun specific test class:
pytest tests/utils/test_github_api_tools.py::TestGraphQLRetryLogicRun tests matching a pattern:
pytest tests/ -k "demotion"Create test files following the pattern test_<module_name>.py in the appropriate directory. Tests are automatically discovered by the test runner.
- set pat as env variable
GITHUB_PAT=<your_pat>
- run the script
python -m tests.score_calculator <owner/name> <merged_pr_number>