forked from PnX-SI/gn_module_monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor fixtures to load them automatically (#20)
Need to set the current working directory of pytest the directory where the gn_monitoring_module repo is (so with the frontend etc.)
- Loading branch information
1 parent
4e8b2d8
commit b2ee73e
Showing
4 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
from geonature.tests.fixtures import * | ||
from geonature.tests.fixtures import _session, app, users | ||
|
||
pytest_plugins = [ | ||
"gn_module_monitoring.tests.fixtures.module", | ||
"gn_module_monitoring.tests.fixtures.site", | ||
"gn_module_monitoring.tests.fixtures.sites_groups", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_site.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_sites_groups.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters