Avoid running bogus tests with Fastmail

The fix that disabled VTODO tests accidentally ran all other tests twice
for this storage.

This wasn't picked up earlier since Fastmail is not currently running on
CI.
This commit is contained in:
Hugo Osvaldo Barrera 2021-06-26 18:12:54 +02:00
parent 2eff8e08e1
commit ef2419efa9

View file

@ -5,11 +5,12 @@ import pytest
class ServerMixin: class ServerMixin:
@pytest.fixture @pytest.fixture
def get_storage_args(self, item_type, slow_create_collection, aio_connector): def get_storage_args(self, slow_create_collection, aio_connector, request):
if item_type == "VTODO": if "item_type" in request.fixturenames:
# Fastmail has non-standard support for TODOs if request.getfixturevalue("item_type") == "VTODO":
# See https://github.com/pimutils/vdirsyncer/issues/824 # Fastmail has non-standard support for TODOs
pytest.skip("Fastmail has non-standard VTODO support.") # See https://github.com/pimutils/vdirsyncer/issues/824
pytest.skip("Fastmail has non-standard VTODO support.")
async def inner(collection="test"): async def inner(collection="test"):
args = { args = {