From 2add3b9ca23a819b8bc06361b5cbbfbfa4cd01f1 Mon Sep 17 00:00:00 2001 From: Martin Bornhold Date: Tue, 12 Jul 2016 19:33:38 +0200 Subject: [PATCH] tests: Only skip test if protocol is 'pyro4' --- rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py b/rhodecode/tests/vcs/test_hg_vcsserver_cache_invalidation.py index 1bb85f57..09852a71 100644 --- 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 TestMercurialRemoteRepoInvalidation(object): """ 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 TestMercurialRemoteRepoInvalidation(object): 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()