diff --git a/backend/gn_module_monitoring/tests/conftest.py b/backend/gn_module_monitoring/tests/conftest.py index b0a007542..6b1107a1d 100644 --- a/backend/gn_module_monitoring/tests/conftest.py +++ b/backend/gn_module_monitoring/tests/conftest.py @@ -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", +] diff --git a/backend/gn_module_monitoring/tests/test_monitoring/test_models/test_module.py b/backend/gn_module_monitoring/tests/test_monitoring/test_models/test_module.py index 60cca2e98..fbf606816 100644 --- a/backend/gn_module_monitoring/tests/test_monitoring/test_models/test_module.py +++ b/backend/gn_module_monitoring/tests/test_monitoring/test_models/test_module.py @@ -2,8 +2,6 @@ from geonature.utils.env import db from gn_module_monitoring.monitoring.models import TMonitoringModules -from gn_module_monitoring.tests.fixtures.module import monitoring_module -from gn_module_monitoring.tests.fixtures.site import categories, site_type @pytest.mark.usefixtures("temporary_transaction") diff --git a/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_site.py b/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_site.py index 9c7f8ac16..04dc22995 100644 --- a/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_site.py +++ b/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_site.py @@ -1,8 +1,6 @@ import pytest from flask import url_for -from gn_module_monitoring.tests.fixtures.site import categories, site_type, sites - @pytest.mark.usefixtures("client_class", "temporary_transaction") class TestSite: diff --git a/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_sites_groups.py b/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_sites_groups.py index eef8a335e..41701d18c 100644 --- a/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_sites_groups.py +++ b/backend/gn_module_monitoring/tests/test_monitoring/test_routes/test_sites_groups.py @@ -1,8 +1,6 @@ import pytest from flask import url_for -from gn_module_monitoring.tests.fixtures.sites_groups import sites_groups - @pytest.mark.usefixtures("client_class", "temporary_transaction") class TestSitesGroups: