Changeset - f8c0549df529
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2019-01-21 03:37:06
mads@kiilerich.com
Grafted from: 801b8c8f4e2a
tests: fix test_push_invalidates_cache - put test data in the right repo
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/test_vcs_operations.py
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)