diff --git a/registrasion/tests/test_cart.py b/registrasion/tests/test_cart.py index bf781bb132209c0540717b22c5d1763c786e2b2b..790c1df996470a8624fe98a929d8dd75feec13a3 100644 --- a/registrasion/tests/test_cart.py +++ b/registrasion/tests/test_cart.py @@ -26,12 +26,16 @@ class RegistrationCartTestCase(SetTimeMixin, TestCase): super(RegistrationCartTestCase, self).setUp() def tearDown(self): - if False: + if True: # If you're seeing segfaults in tests, enable this. - call_command('flush', verbosity=0, interactive=False, - reset_sequences=False, - allow_cascade=False, - inhibit_post_migrate=False) + call_command( + 'flush', + verbosity=0, + interactive=False, + reset_sequences=False, + allow_cascade=False, + inhibit_post_migrate=False + ) super(RegistrationCartTestCase, self).tearDown() @@ -51,11 +55,11 @@ class RegistrationCartTestCase(SetTimeMixin, TestCase): password='top_secret') attendee1 = people.Attendee.get_instance(cls.USER_1) - profile1 = people.AttendeeProfileBase.objects.create( + people.AttendeeProfileBase.objects.create( attendee=attendee1, ) attendee2 = people.Attendee.get_instance(cls.USER_2) - profile2 = people.AttendeeProfileBase.objects.create( + people.AttendeeProfileBase.objects.create( attendee=attendee2, )