Skip to content

Commit

Permalink
SERVICE_UNAVAILABLE TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Dec 11, 2024
1 parent a8d48f7 commit bcb20f8
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@
-p 5432:5432 postgres
"""

try:
subprocess.check_output(
"docker inspect bedbase-test --format '{{.State.Status}}'", shell=True
)
SERVICE_UNAVAILABLE = False
except:
register(
print, f"Some tests require a test database. To initiate it, run:\n{DB_CMD}"
)
SERVICE_UNAVAILABLE = True
# try:
# subprocess.check_output(
# "docker inspect bedbase-test --format '{{.State.Status}}'", shell=True
# )
# SERVICE_UNAVAILABLE = False
# except:
# register(
# print, f"Some tests require a test database. To initiate it, run:\n{DB_CMD}"
# )
# SERVICE_UNAVAILABLE = True
SERVICE_UNAVAILABLE = False


TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit bcb20f8

Please sign in to comment.