Skip to content

Commit

Permalink
with smarter date parsing, DOB format is more flexible - correct fail…
Browse files Browse the repository at this point in the history
…ing test.
  • Loading branch information
pbugni committed Mar 27, 2024
1 parent 3c5cb05 commit 8d0f994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_demographics.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ def test_demographics_duplicate_email_different_case(self):
user = User.query.get(TEST_USER_ID)
assert user._email == NO_EMAIL_PREFIX

def test_demographics_bad_dob(self):
def test_demographics_alternative_format_dob(self):
data = {"resourceType": "Patient", "birthDate": '10/20/1980'}

self.login()
response = self.client.put(
'/api/demographics/%s' % TEST_USER_ID,
content_type='application/json', data=json.dumps(data))
assert response.status_code == 400
assert response.status_code == 200

def test_demographics_list_names(self):
# confirm we can handle when given lists for names as spec'd
Expand Down

0 comments on commit 8d0f994

Please sign in to comment.