Skip to content

Commit 1114346

Browse files
committed
Be stricter with imports in tests
1 parent 0f97ac2 commit 1114346

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ raw-options = { local_scheme = "no-local-version" }
5555

5656

5757
[tool.pytest.ini_options]
58-
addopts = ["-ra", "--strict-markers", "--strict-config"]
58+
addopts = [
59+
"-ra",
60+
"--strict-markers",
61+
"--strict-config",
62+
"--import-mode=importlib",
63+
]
5964
xfail_strict = true
6065
testpaths = "tests"
6166
filterwarnings = ["once::Warning"]

0 commit comments

Comments
 (0)