Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit abaa13e

Browse files
committed
Made sure the response looked good.
1 parent aaf4c9e commit abaa13e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/oidcendpoint/oidc/read_registration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ def process_request(self, request=None, **kwargs):
3434
)
3535

3636
comb_uri(args)
37-
resp = RegistrationResponse(**args)
38-
return {"response_args": resp}
37+
return {"response_args": RegistrationResponse(**args)}

tests/test_32_read_registration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ def test_do_response(self):
131131
_info = self.registration_api_endpoint.process_request(request=_api_req)
132132
assert set(_info.keys()) == {"response_args"}
133133
assert _info["response_args"] == _resp["response_args"]
134+
135+
_endp_response = self.registration_api_endpoint.do_response(_info)
136+
assert set(_endp_response.keys()) == {"response", "http_headers"}
137+
assert ("Content-type", "application/json") in _endp_response["http_headers"]

0 commit comments

Comments
 (0)