Ensure env vars are set for test environment
This commit is contained in:
parent
bca3b0a663
commit
17cb908753
@ -1,3 +1,6 @@
|
|||||||
|
variables:
|
||||||
|
ENVIRON: "test"
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
# Setup test environment variables
|
||||||
|
os.environ["ENVIRON"] = "test"
|
@ -1,8 +1,3 @@
|
|||||||
# Ensure test environment is set before using
|
# Ensure test environment is set before using
|
||||||
import scripts.create_database
|
|
||||||
import os
|
|
||||||
|
|
||||||
# Setup test environment variables
|
|
||||||
os.environ["ENVIRON"] = "test"
|
|
||||||
|
|
||||||
# Runs the database creation scripts
|
# Runs the database creation scripts
|
||||||
|
import scripts.create_database
|
||||||
|
Loading…
Reference in New Issue
Block a user