We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2932721 commit 525a9fdCopy full SHA for 525a9fd
1 file changed
tests/features/environment.py
@@ -17,10 +17,10 @@
17
import random
18
from datetime import datetime, timedelta
19
20
-# Lock test database before any db module imports
21
-# Ensures BDD tests only use ocotilloapi_test, never ocotilloapi_dev
22
-os.environ["POSTGRES_DB"] = "ocotilloapi_test"
23
-os.environ["POSTGRES_PORT"] = "5432"
+# Default BDD runs to the local test database before any db module imports.
+# Allow explicit CI/local environment configuration to override these values.
+os.environ.setdefault("POSTGRES_DB", "ocotilloapi_test")
+os.environ.setdefault("POSTGRES_PORT", "5432")
24
25
from alembic import command
26
from alembic.config import Config
0 commit comments