Spaces:
Runtime error
Runtime error
Aurélie GABU
commited on
Commit
·
d404857
1
Parent(s):
5b1b0d1
denying CI to be connected to DB
Browse files- App/database.py +1 -2
App/database.py
CHANGED
|
@@ -7,8 +7,7 @@ load_dotenv()
|
|
| 7 |
|
| 8 |
# Détection si on est en CI (GitHub Actions) ou en test
|
| 9 |
IS_CI = os.getenv("CI") == "true"
|
| 10 |
-
IS_PYTEST = "pytest" in os.getenv("PYTHONPATH", "") or
|
| 11 |
-
os.getenv("PYTEST_CURRENT_TEST") is not None
|
| 12 |
|
| 13 |
SKIP_DB = IS_CI or IS_PYTEST
|
| 14 |
|
|
|
|
| 7 |
|
| 8 |
# Détection si on est en CI (GitHub Actions) ou en test
|
| 9 |
IS_CI = os.getenv("CI") == "true"
|
| 10 |
+
IS_PYTEST = "pytest" in os.getenv("PYTHONPATH", "") or os.getenv("PYTEST_CURRENT_TEST") is not None
|
|
|
|
| 11 |
|
| 12 |
SKIP_DB = IS_CI or IS_PYTEST
|
| 13 |
|