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:
parent
4aa362a9cc
commit
4902c0ab4b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user