(refactor) Update pytest arguments in Makefile for better test execution (#2063)
* refactor: Update pytest arguments in Makefile for better test execution
The Makefile has been modified to update the pytest arguments in the `tests` target. The `--instafail` flag has been replaced with `-ra -n auto -m "not api_key_required"`. This change allows for better test execution by including additional options for reporting, parallelization, and test selection.
Note: The commit message has been generated based on the provided code changes and recent commits.
* ✨ (test_endpoints.py): add pytest marker 'api_key_required' to mark tests that require an API key for authorization. This helps in easily identifying and managing tests that need special permissions.
This commit is contained in:
parent
dae11df7da
commit
22a7b7e75f
3 changed files with 10 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -48,8 +48,8 @@ coverage:
|
|||
|
||||
# allow passing arguments to pytest
|
||||
tests:
|
||||
poetry run pytest tests --instafail $(args)
|
||||
# Use like:
|
||||
poetry run pytest tests --instafail -ra -n auto -m "not api_key_required" $(args)
|
||||
|
||||
|
||||
format:
|
||||
poetry run ruff check . --fix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue