tests: allow fewer invalidations on second call
This commit is contained in:
parent
ecf389722f
commit
61f52673b5
|
@ -990,7 +990,7 @@ def test_form_multi_page_many_conditions(pub):
|
|||
# check the cache doesn't get invalidated for every page
|
||||
with mock.patch('wcs.qommon.publisher.Substitutions.invalidate_cache') as invalidate_cache:
|
||||
resp = get_app(pub).get('/test/')
|
||||
assert invalidate_cache.call_count == call_count
|
||||
assert invalidate_cache.call_count <= call_count
|
||||
|
||||
|
||||
def test_form_multi_page_condition_stored_values(pub):
|
||||
|
|
Loading…
Reference in New Issue