Skip to content

Commit 0249c6a

Browse files
committed
tests: org_api: Add output to api assert message
As the API will output valid json to a 404 it's helpful to see this in the output rather than just KeyError.
1 parent 90db6ed commit 0249c6a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

datastore/tests/test_org_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_recipient_grants_received(self):
316316
headers={"accept": "application/json"},
317317
).json()
318318

319-
self.assertEqual(data["count"], 46)
319+
self.assertEqual(data["count"], 46, f"API responded {data}")
320320

321321
grants = {grant["grant_id"]: grant for grant in data["results"]}
322322

@@ -329,7 +329,6 @@ def test_recipient_nonprimary_grants_received(self):
329329
f"/api/v1/org/{self.recipient_nonprimary_org_id}/grants_received/",
330330
headers={"accept": "application/json"},
331331
).json()
332-
333332
self.assertEqual(data["count"], 46)
334333

335334
def test_recipient_grants_made(self):

0 commit comments

Comments
 (0)