Skip to content

Commit d953afe

Browse files
fix: unique deployment path
1 parent 3d481cb commit d953afe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • snakemake_interface_software_deployment_plugins

snakemake_interface_software_deployment_plugins/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _get_env_by_cls(
180180
tmp_path,
181181
within: Optional[EnvBase] = None,
182182
) -> EnvBase:
183-
tmp_name = env_cls.__name__
183+
tmp_name = spec.module().__name__
184184

185185
tempdir = tmp_path / tmp_name / "temp"
186186
deployment_prefix = tmp_path / tmp_name / "deployments"
@@ -211,4 +211,4 @@ def _deploy(self, env: EnvBase, tmp_path):
211211

212212
assert isinstance(env, DeployableEnvBase)
213213
asyncio.run(env.deploy())
214-
assert any((tmp_path / env.__class__.__name__ / "deployments").iterdir())
214+
assert any((tmp_path / env.spec.module().__name__ / "deployments").iterdir())

0 commit comments

Comments
 (0)