# HG changeset patch # User Martin Bornhold # Date 2016-07-12 17:33:38 # Node ID c1bb40a11bdefebbe277c3a928b69f1d20f0ac7d # Parent e4f441e2bc6940163e319713f6a8b753db3398f5 tests: Only skip test if protocol is 'pyro4' diff --git a/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py b/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py --- a/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py +++ b/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py @@ -123,7 +123,7 @@ class TestMercurialRemoteRepoInvalidatio """ from rhodecode.lib.vcs.exceptions import CommitDoesNotExistError - if pylonsapp.config['vcs.server.protocol'] != 'http': + if pylonsapp.config['vcs.server.protocol'] == 'pyro4': pytest.skip('Test is intended for the HTTP protocol only.') pull_request = pr_util.create_pull_request() @@ -163,7 +163,7 @@ class TestMercurialRemoteRepoInvalidatio Without correct cache invalidation this leads to an error when retrieving the pulled commits afterwards. """ - if pylonsapp.config['vcs.server.protocol'] != 'http': + if pylonsapp.config['vcs.server.protocol'] == 'pyro4': pytest.skip('Test is intended for the HTTP protocol only.') pull_request = pr_util.create_pull_request()