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.
mark_exists()
1 parent 2a30586 commit c7e0229Copy full SHA for c7e0229
pytest_django_test/db_helpers.py
@@ -166,8 +166,7 @@ def mark_exists():
166
if db_engine == "postgresql":
167
r = run_psql(TEST_DB_NAME, "-c", "SELECT 1 FROM mark_table")
168
169
- # When something pops out on std_out, we are good
170
- return bool(r.std_out)
+ return r.status_code == 0
171
172
if db_engine == "mysql":
173
r = run_mysql(TEST_DB_NAME, "-e", "SELECT 1 FROM mark_table")
0 commit comments