mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-3426 - fix - add _tests suffix only if not present
_tests suffix is added to avalon and openpype DB for testing run. env vars for these might be already injected, so do not add them again.
This commit is contained in:
parent
418135cde0
commit
d3769b3b73
1 changed files with 4 additions and 2 deletions
6
start.py
6
start.py
|
|
@ -1030,9 +1030,11 @@ def boot():
|
|||
|
||||
if os.environ.get("IS_TEST") == "1":
|
||||
# change source DBs to predefined ones set for automatic testing
|
||||
os.environ["OPENPYPE_DATABASE_NAME"] += "_tests"
|
||||
if "_tests" not in os.environ["OPENPYPE_DATABASE_NAME"]:
|
||||
os.environ["OPENPYPE_DATABASE_NAME"] += "_tests"
|
||||
avalon_db = os.environ.get("AVALON_DB") or "avalon"
|
||||
os.environ["AVALON_DB"] = avalon_db + "_tests"
|
||||
if "_tests" not in avalon_db:
|
||||
os.environ["AVALON_DB"] = avalon_db + "_tests"
|
||||
|
||||
global_settings = get_openpype_global_settings(openpype_mongo)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue