# HG changeset patch # User Mads Kiilerich # Date 2019-01-21 03:37:06 # Node ID f8c0549df5296493aab489c1aee647cdf8a1b709 # Parent ea799beea5dd8273a5492f8d6b795d126837df74 tests: fix test_push_invalidates_cache - put test data in the right repo diff --git a/kallithea/tests/other/test_vcs_operations.py b/kallithea/tests/other/test_vcs_operations.py --- a/kallithea/tests/other/test_vcs_operations.py +++ b/kallithea/tests/other/test_vcs_operations.py @@ -353,9 +353,9 @@ class TestVCSOperations(TestController): @parametrize_vcs_test def test_push_invalidates_cache(self, webserver, testfork, vt): key = CacheInvalidation.query().filter(CacheInvalidation.cache_key - == vt.repo_name).scalar() + == testfork[vt.repo_type]).scalar() if not key: - key = CacheInvalidation(vt.repo_name, vt.repo_name) + key = CacheInvalidation(testfork[vt.repo_type], testfork[vt.repo_type]) Session().add(key) key.cache_active = True