mirror of
https://github.com/django/django.git
synced 2025-11-26 13:42:08 +00:00
Used subTest() in migrate_signals.tests.MigrateSignalTests.test_args().
This commit is contained in:
parent
5d9b065d3f
commit
31bebc558b
1 changed files with 10 additions and 9 deletions
|
|
@ -73,6 +73,7 @@ class MigrateSignalTests(TransactionTestCase):
|
|||
)
|
||||
|
||||
for receiver in [pre_migrate_receiver, post_migrate_receiver]:
|
||||
with self.subTest(receiver=receiver):
|
||||
args = receiver.call_args
|
||||
self.assertEqual(receiver.call_counter, 1)
|
||||
self.assertEqual(set(args), set(SIGNAL_ARGS))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue