#N/A: Fix tests with pytest 4

This commit is contained in:
Vladimir Iakovlev
2019-01-15 00:35:28 +01:00
parent 1eb4ccbcc9
commit 9354a977dd
+1 -1
View File
@@ -42,7 +42,7 @@ def no_cache(monkeypatch):
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def functional(request): def functional(request):
if request.node.get_marker('functional') \ if request.node.get_closest_marker('functional') \
and not request.config.getoption('enable_functional'): and not request.config.getoption('enable_functional'):
pytest.skip('functional tests are disabled') pytest.skip('functional tests are disabled')