We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608cf34 commit 986ff7aCopy full SHA for 986ff7a
src/api/searchCpmProduct/tests/test_index.py
@@ -160,15 +160,14 @@ def test_index_no_such_product_team():
160
)
161
162
result_body = json_loads(result["body"])
163
- assert result["statusCode"] == 404
164
- assert result_body["resourceType"] == "OperationOutcome"
165
- assert (
166
- result_body["issue"][0]["details"]["coding"][0]["code"] == "RESOURCE_NOT_FOUND"
167
- )
168
169
- result_body["issue"][0]["diagnostics"]
170
- == "Could not find ProductTeam for key ('123456')"
171
+ assert result_body == {
+ "errors": [
+ {
+ "code": "RESOURCE_NOT_FOUND",
+ "message": "Could not find ProductTeam for key ('123456')",
+ }
+ ]
172
173
174
@pytest.mark.integration
0 commit comments