Removed hardcoded pk in test_pk_set_on_repeated_add_remove.
Follow up to bed4a1527b
.
This commit is contained in:
parent
4527d5db0f
commit
7f61b6b039
|
@ -92,7 +92,7 @@ class ManyToManySignalsTest(TestCase):
|
||||||
self.vw.default_parts.remove(self.wheelset)
|
self.vw.default_parts.remove(self.wheelset)
|
||||||
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)
|
self.assertEqual(pk_sets_sent, expected_pk_sets)
|
||||||
|
|
||||||
models.signals.m2m_changed.disconnect(handler, Car.default_parts.through)
|
models.signals.m2m_changed.disconnect(handler, Car.default_parts.through)
|
||||||
|
|
Loading…
Reference in New Issue