Skip to content

Commit 56fff6d

Browse files
committed
Add testcase to have clean exit status
1 parent 1e2dcb3 commit 56fff6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_django_settings_module.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ def pytest_configure():
119119
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
120120
'tpkg.settings_ds')
121121
""")
122+
123+
testdir.makepyfile("""
124+
def test_anything():
125+
pass
126+
""")
127+
122128
r = testdir.runpytest_subprocess()
129+
r.assert_outcomes(passed=1)
123130
assert r.ret == 0
124131

125132

0 commit comments

Comments
 (0)