renamed the internal name of directory stores
This commit is contained in:
parent
8a32fbfb4d
commit
9ce1d4d33b
|
@ -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)
|
||||
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user