Skip to content

Commit 498674e

Browse files
committed
fix pytest.mamba_cmd
1 parent 676de71 commit 498674e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/conftest.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,16 @@ def pytest_configure():
132132
# load all model packages used in tests
133133
pytest.model_packages = {name: export_resource_package(model_sources[name]) for name in load_model_packages}
134134

135-
mamba_cmd = "micromamba"
135+
pytest.mamba_cmd = "micromamba"
136136
try:
137-
subprocess.run(["which", mamba_cmd], check=True)
137+
subprocess.run(["which", pytest.mamba_cmd], check=True)
138138
except (subprocess.CalledProcessError, FileNotFoundError):
139-
mamba_cmd = "mamba"
139+
pytest.mamba_cmd = "mamba"
140140
try:
141-
subprocess.run(["which", mamba_cmd], check=True)
141+
subprocess.run(["which", pytest.mamba_cmd], check=True)
142142
except (subprocess.CalledProcessError, FileNotFoundError):
143143
pytest.mamba_cmd = None
144144

145-
pytest.mamba_cmd = mamba_cmd
146-
147145

148146
#
149147
# model groups of the form any_<weight format>_model that include all models providing a specific weight format

0 commit comments

Comments
 (0)