Skip to content

Commit

Permalink
Test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Sep 25, 2024
1 parent dfaa79c commit 920f723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/meshapi/tests/sample_join_form_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"last_name": "Smith",
"email": "[email protected]",
"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",
Expand Down
9 changes: 8 additions & 1 deletion src/meshapi/tests/test_join_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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):
Expand Down

0 comments on commit 920f723

Please sign in to comment.