mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix test_event_custom_domain_cache_clear
This commit is contained in:
@@ -103,8 +103,12 @@ def test_event_custom_domain_cache_clear(env):
|
||||
with assert_num_queries(1):
|
||||
eventreverse(env[1], 'presale:event.index')
|
||||
kd.delete()
|
||||
with assert_num_queries(2):
|
||||
ev = Event.objects.get(pk=env[1].pk)
|
||||
assert ev.pk == env[1].pk
|
||||
assert ev.organizer == env[0]
|
||||
with assert_num_queries(1):
|
||||
eventreverse(env[1], 'presale:event.index')
|
||||
eventreverse(ev, 'presale:event.index')
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
Reference in New Issue
Block a user