mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 16:07:46 +00:00
fix pytest localenv error (#62)
This commit is contained in:
@@ -94,7 +94,8 @@ class LocalEnv(Env[LocalConf]):
|
||||
cwd = None
|
||||
if local_path:
|
||||
cwd = Path(local_path).resolve()
|
||||
print(command)
|
||||
print(f"CWD: {cwd}")
|
||||
|
||||
result = subprocess.run(
|
||||
command,
|
||||
cwd=cwd,
|
||||
|
||||
@@ -30,8 +30,9 @@ class EnvUtils(unittest.TestCase):
|
||||
# )
|
||||
# qle = LocalEnv(conf=local_conf)
|
||||
# qle.prepare()
|
||||
# exe_path = str(DIRNAME / "env_tpl")
|
||||
# conf_path = str(DIRNAME / "env_tpl" / "conf.yaml")
|
||||
# qle.run(entry="qrun " + conf_path)
|
||||
# qle.run(entry="qrun " + conf_path, local_path=exe_path)
|
||||
# mlrun_p = DIRNAME / "env_tpl" / "mlruns"
|
||||
# self.assertTrue(mlrun_p.exists(), f"Expected output file {mlrun_p} not found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user