mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Remove ugly fixture, at least make it local
This commit is contained in:
parent
eae0cff48f
commit
1ff6469767
2 changed files with 4 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def class_tmpdir(request, tmpdir):
|
||||
request.instance.tmpdir = str(tmpdir)
|
||||
|
|
@ -14,10 +14,13 @@ from vdirsyncer.storage.filesystem import FilesystemStorage
|
|||
from . import StorageTests
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('class_tmpdir')
|
||||
class TestFilesystemStorage(StorageTests):
|
||||
storage_class = FilesystemStorage
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup(self, tmpdir):
|
||||
self.tmpdir = str(tmpdir)
|
||||
|
||||
def get_storage_args(self, collection=None):
|
||||
path = self.tmpdir
|
||||
if collection is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue