vdirsyncer/tests/storage/test_singlefile.py
Hugo Osvaldo Barrera 5b8f00e720 Sort imports
2021-07-25 18:35:47 +02:00

21 lines
555 B
Python

import pytest
from vdirsyncer.storage.singlefile import SingleFileStorage
from . import StorageTests
class TestSingleFileStorage(StorageTests):
storage_class = SingleFileStorage
supports_metadata = False
@pytest.fixture
def get_storage_args(self, tmpdir):
async def inner(collection="test"):
rv = {"path": str(tmpdir.join("%s.txt")), "collection": collection}
if collection is not None:
rv = await self.storage_class.create_collection(**rv)
return rv
return inner