We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6fe53 commit f496d4cCopy full SHA for f496d4c
tests/admin_views/test_actions.py
@@ -83,13 +83,7 @@ def test_model_admin_default_delete_action(self):
83
)
84
# Log entries are inserted in bulk.
85
self.assertEqual(
86
- len(
87
- [
88
- q["sql"]
89
- for q in ctx.captured_queries
90
- if q["sql"].startswith("INSERT")
91
- ]
92
- ),
+ len([q["sql"] for q in ctx.captured_queries if "insert_many" in q["sql"]]),
93
1,
94
95
self.assertEqual(Subscriber.objects.count(), 0)
0 commit comments