From 632279446e87bf193d882fe3d64cad5b064fca99 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Thu, 24 Mar 2022 11:14:14 +0300 Subject: [PATCH] Update --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index e20d7262..030e79f9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,10 +16,10 @@ def _add_version_var(name: str, env_path: Path): return if value == "develop": - value = "latest" + os.environ[name] = "latest" with open(env_path, "a") as f: - f.write(f"\n{name}={value}") + f.write(f"\n{name}={os.environ[name]}") @pytest.fixture(scope="session") @@ -31,7 +31,7 @@ def env_file(tmp_path_factory: pytest.TempPathFactory): for var in ("FRAPPE_VERSION", "ERPNEXT_VERSION"): _add_version_var(name=var, env_path=file_path) - yield file_path + yield str(file_path) os.remove(file_path)