Removed hardcoded pk in test_pk_set_on_repeated_add_remove.

Follow up to bed4a1527b.
This commit is contained in:
Tim Graham 2019-11-15 10:12:57 -05:00 committed by Mariusz Felisiak
parent 4527d5db0f
commit 7f61b6b039
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class ManyToManySignalsTest(TestCase):
self.vw.default_parts.remove(self.wheelset)
self.vw.default_parts.remove(self.wheelset)
expected_pk_sets = [{1}, set(), {1}, {1}]
expected_pk_sets = [{self.wheelset.pk}, set(), {self.wheelset.pk}, {self.wheelset.pk}]
self.assertEqual(pk_sets_sent, expected_pk_sets)
models.signals.m2m_changed.disconnect(handler, Car.default_parts.through)