Skip to content

Commit 1f990f1

Browse files
feat: add get_within() method to TestSoftwareDeploymentBase
1 parent bc5891f commit 1f990f1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • snakemake_interface_software_deployment_plugins

snakemake_interface_software_deployment_plugins/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def get_settings(
5959
@abstractmethod
6060
def get_settings_cls(self) -> Optional[Type[SoftwareDeploymentSettingsBase]]: ...
6161

62+
def get_within(self) -> Optional[EnvBase]:
63+
return None
64+
6265
def test_envspec_str(self):
6366
print("env spec", str(self.get_env_spec()))
6467

@@ -169,6 +172,7 @@ def _get_env(self, tmp_path) -> EnvBase:
169172
deployment_prefix=deployment_prefix,
170173
cache_prefix=cache_prefix,
171174
pinfile_prefix=pinfile_prefix,
175+
within=self.get_within(),
172176
)
173177

174178
def _deploy(self, env: EnvBase, tmp_path):

0 commit comments

Comments
 (0)