forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905af6c
commit 09f3bca
Showing
3 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,8 @@ def get_mock_cue_annotated_contract_items(email): | |
if email == "[email protected]": | ||
res._content = b'{"code": "unauthorized","message": "unauthorized","traceId": "4f741380-317d-409d-a2e2-ed3e89565f56"}' | ||
res.status_code = 401 | ||
|
||
else: | ||
|
||
else: | ||
mock_exams = [ | ||
{ | ||
"accountContext": { | ||
|
@@ -62,6 +61,6 @@ def get_mock_cue_annotated_contract_items(email): | |
] | ||
res._content = json.dumps(mock_exams).encode("utf-8") | ||
res.status_code = 200 | ||
|
||
res.raise_for_status() | ||
return res.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters