Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Sep 23, 2015
1 parent b7993b3 commit 66119aa
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/storage/test_remotestorage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-


import os

import pytest

from vdirsyncer.storage.remotestorage import \
RemoteStorageCalendars, RemoteStorageContacts

from . import StorageTests, get_server_mixin

remotestorage_server = os.environ['REMOTESTORAGE_SERVER']
ServerMixin = get_server_mixin(remotestorage_server)


class RemoteStorageTests(ServerMixin, StorageTests):
remotestorage_server = remotestorage_server


class TestCalendars(RemoteStorageTests):
storage_class = RemoteStorageCalendars

@pytest.fixture(params=['VTODO', 'VEVENT'])
def item_type(self, request):
return request.param


class TestContacts(RemoteStorageTests):
storage_class = RemoteStorageContacts
supports_collections = False

@pytest.fixture(params=['VCARD'])
def item_type(self, request):
return request.param

0 comments on commit 66119aa

Please sign in to comment.