Skip to content

Commit

Permalink
fix: run tests from the src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
collinlokken committed Feb 4, 2025
1 parent 6912a7a commit 3478a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ repos:
hooks:
- id: pytest
name: pytest-check
entry: sh -c "if [ -f api/.venv/bin/python ]; then var=api/.venv/bin/python; else var=api/.venv/Scripts/python; fi; $var -m pytest api/src/tests"
entry: sh -c "cd ./api/src/ && poetry run pytest ./tests/"
language: system
pass_filenames: false
always_run: true
Expand Down

0 comments on commit 3478a06

Please sign in to comment.