Skip davical test skipper

This commit is contained in:
Markus Unterwaditzer 2018-01-19 11:17:58 +01:00
parent 991076d12a
commit 2d0527ecf0

View file

@ -10,13 +10,15 @@ try:
'url': 'https://brutus.lostpackets.de/davical-test/caldav.php/', 'url': 'https://brutus.lostpackets.de/davical-test/caldav.php/',
} }
except KeyError as e: except KeyError as e:
pytestmark = pytest.mark.skip('Missing envkey: {}'.format(str(e))) caldav_args = None
@pytest.mark.flaky(reruns=5) @pytest.mark.flaky(reruns=5)
class ServerMixin(object): class ServerMixin(object):
@pytest.fixture @pytest.fixture
def davical_args(self): def davical_args(self):
if caldav_args is None:
pytest.skip('Missing envkeys for davical')
if self.storage_class.fileext == '.ics': if self.storage_class.fileext == '.ics':
return dict(caldav_args) return dict(caldav_args)
elif self.storage_class.fileext == '.vcf': elif self.storage_class.fileext == '.vcf':