mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
Update
This commit is contained in:
parent
80e3fdcd81
commit
632279446e
1 changed files with 3 additions and 3 deletions
|
|
@ -16,10 +16,10 @@ def _add_version_var(name: str, env_path: Path):
|
||||||
return
|
return
|
||||||
|
|
||||||
if value == "develop":
|
if value == "develop":
|
||||||
value = "latest"
|
os.environ[name] = "latest"
|
||||||
|
|
||||||
with open(env_path, "a") as f:
|
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")
|
@pytest.fixture(scope="session")
|
||||||
|
|
@ -31,7 +31,7 @@ def env_file(tmp_path_factory: pytest.TempPathFactory):
|
||||||
for var in ("FRAPPE_VERSION", "ERPNEXT_VERSION"):
|
for var in ("FRAPPE_VERSION", "ERPNEXT_VERSION"):
|
||||||
_add_version_var(name=var, env_path=file_path)
|
_add_version_var(name=var, env_path=file_path)
|
||||||
|
|
||||||
yield file_path
|
yield str(file_path)
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue