From 920825f5d5554362dc12a05fe1548d3527bce53c Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Thu, 23 Nov 2023 14:15:47 +0100 Subject: [PATCH] fix: improve templates --- .../templates/storage-plugins/tests.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/poetry_snakemake_plugin/templates/storage-plugins/tests.py b/poetry_snakemake_plugin/templates/storage-plugins/tests.py index f89dd95..29dd800 100644 --- a/poetry_snakemake_plugin/templates/storage-plugins/tests.py +++ b/poetry_snakemake_plugin/templates/storage-plugins/tests.py @@ -4,16 +4,18 @@ from snakemake_interface_storage_plugins.settings import StorageProviderSettingsBase -class TestStorageNoSettings(TestStorageBase): +class TestStorage(TestStorageBase): __test__ = True retrieve_only = False # set to True if the storage is read-only + store_only = False # set to True if the storage is write-only + delete = True # set to False if the storage does not support deletion - def get_query(self) -> str: + def get_query(self, tmp_path) -> str: # Return a query. If retrieve_only is True, this should be a query that # is present in the storage, as it will not be created. ... - def get_query_not_existing(self) -> str: + def get_query_not_existing(self, tmp_path) -> str: ... def get_storage_provider_cls(self) -> Type[StorageProviderBase]: