tests: allow fewer invalidations on second call

This commit is contained in:
Frédéric Péters 2020-08-16 10:05:30 +02:00
parent ecf389722f
commit 61f52673b5
1 changed files with 1 additions and 1 deletions

View File

@ -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):