Skip to content

Commit 98862ea

Browse files
committed
updating tests to handle v2 cases
1 parent 8850518 commit 98862ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/fhir/bluebutton/views/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def fhir_conformance(request, via_oauth=False, v2=False, *args):
6666
od = conformance_filter(text_out)
6767

6868
# Append Security to ConformanceStatement
69-
security_endpoint = build_oauth_resource(request, v2, format_type="json")
69+
security_endpoint = build_oauth_resource(request, format_type="json")
7070
od['rest'][0]['security'] = security_endpoint
7171
# Fix format values
7272
od['format'] = ['application/json', 'application/fhir+json']

apps/wellknown/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def test_valid_response(self):
2121
response = self.client.get(self.url)
2222
self.assertEqual(response.status_code, 200)
2323
self.assertContains(
24-
response, reverse('oauth2_provider:token'))
25-
self.assertContains(response, reverse('openid_connect_userinfo'))
24+
response, reverse('oauth2_provider_v2:token-v2'))
25+
self.assertContains(response, reverse('openid_connect_userinfo_v2'))
2626
self.assertContains(response, "response_types_supported")
2727
self.assertContains(response, getattr(settings, 'HOSTNAME_URL'))
2828
response_content = response.content

0 commit comments

Comments
 (0)