mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Added setup of _ROOT env vars
This commit is contained in:
parent
4bb1b5c4a0
commit
08b42c9427
1 changed files with 6 additions and 0 deletions
|
|
@ -72,6 +72,12 @@ class TestCase:
|
||||||
value = value.format(**all_vars)
|
value = value.format(**all_vars)
|
||||||
print("Setting {}:{}".format(key, value))
|
print("Setting {}:{}".format(key, value))
|
||||||
monkeypatch_session.setenv(key, value)
|
monkeypatch_session.setenv(key, value)
|
||||||
|
import openpype
|
||||||
|
|
||||||
|
openpype_root = os.path.dirname(os.path.dirname(openpype.__file__))
|
||||||
|
# ?? why 2 of those
|
||||||
|
monkeypatch_session.setenv("OPENPYPE_ROOT", openpype_root)
|
||||||
|
monkeypatch_session.setenv("OPENPYPE_REPOS_ROOT", openpype_root)
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def db_setup(self, download_test_data, env_var, monkeypatch_session):
|
def db_setup(self, download_test_data, env_var, monkeypatch_session):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue