Skip to content

Commit

Permalink
Updated tests to check for waitlist
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanSatish committed Dec 19, 2023
1 parent 1c6af2a commit d5fe61a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions huxley/core/tests/admin/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_preference_export(self):
cp.name for cp in registration.committee_preferences.all())]

payment_type_string = ['Credit Card' if registration.payment_type == 1 else 'Check']
is_waitlisted_string = ['Yes' if registration.is_waitlisted == 1 else 'No']

fields = [
registration.registered_at,
Expand All @@ -64,6 +65,7 @@ def test_preference_export(self):
fields.extend(country_preferences)
fields.extend(committee_preferences)
fields.extend(registration.registration_comments)
fields.extend(is_waitlisted_string)

fields_csv += ','.join(map(str, fields))
self.assertEquals(fields_csv, response.content[:-3].decode('utf-8'))

0 comments on commit d5fe61a

Please sign in to comment.