Skip to content

Commit 6fcb4a9

Browse files
committed
safety net for tests
1 parent d0985c4 commit 6fcb4a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121

2222
def pytest_configure(config: pytest.Config) -> None:
23+
if '-s' not in sys.argv:
24+
raise ValueError('The -s flag is required to run tests.')
25+
2326
settings.configure(
2427
INSTALLED_APPS=('tests',),
2528
DATABASES={

0 commit comments

Comments
 (0)