From 9ce1d4d33bbaa16e162c3465e9c42e4744caed81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Fri, 19 Apr 2019 14:30:07 +0200 Subject: [PATCH] renamed the internal name of directory stores --- bunker/backends/directory_store.py | 2 +- test/test_backends_directory_store.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bunker/backends/directory_store.py b/bunker/backends/directory_store.py index 5073915..7e331b1 100644 --- a/bunker/backends/directory_store.py +++ b/bunker/backends/directory_store.py @@ -16,7 +16,7 @@ class DirectoryStore(AbstractComponent): not operate on true directories but on temporary directories that are filled with content by anonther layer. """ - component_type = "dir" + component_type = "ds" def __init__(self, bunker, name, password, directory=None, delete=None): AbstractComponent.__init__(self, bunker, name, password) diff --git a/test/test_backends_directory_store.py b/test/test_backends_directory_store.py index 031d96f..a9f165e 100644 --- a/test/test_backends_directory_store.py +++ b/test/test_backends_directory_store.py @@ -14,7 +14,7 @@ def bunker_and_password(tmpdir): def test_add_directory_store(bunker_and_password): bunker, password = bunker_and_password - ds = bunker.add_component("dir", "test.dir", password) + ds = bunker.add_component("ds", "test.ds", password) assert isinstance(ds, DirectoryStore) @@ -24,9 +24,9 @@ def bunker_ds_password_name(tmpdir): password = b"H6ihKLXV8HMQWbJs" bunker = Bunker.open(path) - ds = bunker.add_component("dir", "test.dir", password) + ds = bunker.add_component("ds", "test.ds", password) - return bunker, ds, password, "test.dir" + return bunker, ds, password, "test.ds" @pytest.fixture def file_contents():