0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00

Remove assertNumQueries from deletion log test

as per https://github.com/wagtail/wagtail/pull/8289#discussion_r844114429 - it's too sensitive to changes to logic elsewhere.
This commit is contained in:
Matt Westcott 2022-04-06 16:56:55 +01:00
parent 4aa362a9cc
commit 4902c0ab4b

View File

@ -285,8 +285,7 @@ class TestAuditLog(TestCase):
)
# check deleting a parent page logs descendent deletion
with self.assertNumQueries(189):
self.home_page.delete()
self.home_page.delete()
self.assertEqual(
PageLogEntry.objects.filter(action="wagtail.delete").count(), 4