changeset 7682:f8c0549df529

tests: fix test_push_invalidates_cache - put test data in the right repo
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 21 Jan 2019 03:37:06 +0100
parents ea799beea5dd
children b8551ceab448
files kallithea/tests/other/test_vcs_operations.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/other/test_vcs_operations.py	Wed Jan 16 02:32:33 2019 +0100
+++ b/kallithea/tests/other/test_vcs_operations.py	Mon Jan 21 03:37:06 2019 +0100
@@ -353,9 +353,9 @@
     @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