Skip to content

Commit 1ea136e

Browse files
Updates based on PR self-review with Brandon and Matt
1 parent f6d4d7d commit 1ea136e

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

apps/mymedicare_cb/tests/mock_url_responses_slsx.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ def slsx_signout_fail2_mock(self, url, request):
5959
# mock sls token endpoint OK
6060
@urlmatch(netloc=NETLOC_REGEX_SSO_SESSION, path='/sso/session')
6161
def slsx_token_mock(self, url, request):
62-
print()
63-
print("slsx_token_mock url: ", url)
64-
print("slsx_token_mock request: ", request.__dict__)
6562
return {"status_code": status.HTTP_200_OK,
6663
"content": {"auth_token": "tqXFB/j2OR9Fx7aDowGasMZGqoWmwcihNzMdaW2gpEmV",
6764
"role": "consumer",

apps/mymedicare_cb/tests/test_callback_slsx.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,10 @@ def catchall(url, request):
302302
)
303303
s.save()
304304

305-
print()
306-
print("callback_url: ", self.callback_url)
307-
print("THIS IS BEFORE")
308305
response = self.client.get(
309306
self.callback_url,
310307
data={"req_token": "0000-test_req_token-0000", "relay": state},
311308
)
312-
print("THIS IS AFTER THE GET")
313-
print("response", response.__dict__)
314309

315310
# assert http redirect
316311
self.assertEqual(response.status_code, status.HTTP_302_FOUND)
@@ -658,7 +653,6 @@ def catchall(url, request):
658653
response = self.client.get(
659654
self.callback_url, data={"req_token": "test", "relay": state}
660655
)
661-
print()
662656
# assert http redirect
663657
self.assertEqual(response.status_code, status.HTTP_302_FOUND)
664658

hhs_oauth_server/request_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def _log_msg_update_from_object(self, obj, key, obj_key):
157157
# Log message update from a passed in object
158158
try:
159159
value = getattr(obj, obj_key, None)
160+
# Added as the fhir_id column on crosswalk is now a method rather than a property
160161
if callable(value):
161162
value = value()
162163
if value is not None:

0 commit comments

Comments
 (0)