Skip to content

Commit

Permalink
Fix log index test
Browse files Browse the repository at this point in the history
  • Loading branch information
maximusunc committed Dec 11, 2023
1 parent 970fcda commit 8a89757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_kp_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ async def test_kp_500(client, monkeypatch):
output = response.json()

# Check that we stored the error
assert "Response Error contacting infores:kp0" in output["logs"][3]["message"]
assert "Internal server error" in output["logs"][3]["response"]["data"]
assert "Response Error contacting infores:kp0" in output["logs"][4]["message"]
assert "Internal server error" in output["logs"][4]["response"]["data"]
# Ensure we have results from the other KPs
assert len(output["message"]["knowledge_graph"]["nodes"]) > 0
assert len(output["message"]["knowledge_graph"]["edges"]) > 0
Expand Down

0 comments on commit 8a89757

Please sign in to comment.