We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
configure_unit_tests
1 parent 0d312d3 commit 89e1039Copy full SHA for 89e1039
tests/unit/conftest.py
@@ -1,14 +1,15 @@
1
import pytest # type: ignore
2
3
-from grimp.application.config import settings
4
from grimp.application.graph import ImportGraph
5
from grimp.adaptors.modulefinder import ModuleFinder
+from tests.config import override_settings
6
7
8
@pytest.fixture(scope="module", autouse=True)
9
def configure_unit_tests():
10
- settings.configure(
+ with override_settings(
11
IMPORT_GRAPH_CLASS=ImportGraph,
12
MODULE_FINDER=ModuleFinder(),
13
FILE_SYSTEM=None,
14
- )
+ ):
15
+ yield
0 commit comments