close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Testing

Running Tests

Run all tests:

pytest tests/

Run with verbose output:

pytest tests/ -v

Run specific test file:

pytest tests/utils/test_github_api_tools.py

Run specific test class:

pytest tests/utils/test_github_api_tools.py::TestGraphQLRetryLogic

Run tests matching a pattern:

pytest tests/ -k "demotion"

Adding New Tests

Create test files following the pattern test_<module_name>.py in the appropriate directory. Tests are automatically discovered by the test runner.

Using score calculator (BETA)

  • set pat as env variable
GITHUB_PAT=<your_pat>
  • run the script
python -m tests.score_calculator <owner/name> <merged_pr_number>