Skip to content

Commit 66119aa

Browse files
committed
Add tests
1 parent b7993b3 commit 66119aa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

tests/storage/test_remotestorage.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- coding: utf-8 -*-
2+
3+
4+
import os
5+
6+
import pytest
7+
8+
from vdirsyncer.storage.remotestorage import \
9+
RemoteStorageCalendars, RemoteStorageContacts
10+
11+
from . import StorageTests, get_server_mixin
12+
13+
remotestorage_server = os.environ['REMOTESTORAGE_SERVER']
14+
ServerMixin = get_server_mixin(remotestorage_server)
15+
16+
17+
class RemoteStorageTests(ServerMixin, StorageTests):
18+
remotestorage_server = remotestorage_server
19+
20+
21+
class TestCalendars(RemoteStorageTests):
22+
storage_class = RemoteStorageCalendars
23+
24+
@pytest.fixture(params=['VTODO', 'VEVENT'])
25+
def item_type(self, request):
26+
return request.param
27+
28+
29+
class TestContacts(RemoteStorageTests):
30+
storage_class = RemoteStorageContacts
31+
supports_collections = False
32+
33+
@pytest.fixture(params=['VCARD'])
34+
def item_type(self, request):
35+
return request.param

0 commit comments

Comments
 (0)