From 920f723e20958d67b0b8bd428987426e9b69bfc3 Mon Sep 17 00:00:00 2001 From: Willard Nilges Date: Wed, 25 Sep 2024 09:11:54 -0400 Subject: [PATCH] Test cases --- src/meshapi/tests/sample_join_form_data.py | 2 +- src/meshapi/tests/test_join_form.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/meshapi/tests/sample_join_form_data.py b/src/meshapi/tests/sample_join_form_data.py index 77b594f6..232a8621 100644 --- a/src/meshapi/tests/sample_join_form_data.py +++ b/src/meshapi/tests/sample_join_form_data.py @@ -3,7 +3,7 @@ "last_name": "Smith", "email": "jsmith@gmail.com", "phone": "+1 585-758-3425", # CSH's phone number :P - "street_address": "151 Broome Street", # Also covers New York County Test Case + "street_address": "151 Broome St", # Also covers New York County Test Case "parsed_street_address": "151 Broome Street", "city": "New York", "state": "NY", diff --git a/src/meshapi/tests/test_join_form.py b/src/meshapi/tests/test_join_form.py index 9b1be2c9..ce786d30 100644 --- a/src/meshapi/tests/test_join_form.py +++ b/src/meshapi/tests/test_join_form.py @@ -136,7 +136,7 @@ def test_valid_join_form(self, submission): request, s = pull_apart_join_form_submission(submission) - response = self.c.post("/api/v1/join/", request, content_type="application/json") + response = self.c.post("/api/v1/join/", s, content_type="application/json") code = 201 self.assertEqual( code, @@ -148,6 +148,13 @@ def test_valid_join_form(self, submission): @parameterized.expand( [ [valid_join_form_submission_needs_expansion], + [valid_join_form_submission], + [valid_join_form_submission_no_email], + [richmond_join_form_submission], + [kings_join_form_submission], + [queens_join_form_submission], + [bronx_join_form_submission], + [valid_join_form_submission_with_apartment_in_address], ] ) def test_valid_join_form_with_member_confirmation(self, submission):