Skip to content

Commit

Permalink
Merge pull request #5 from exoplanet-dev/develop
Browse files Browse the repository at this point in the history
Fixing assertion error
  • Loading branch information
AndreMiras authored Nov 15, 2020
2 parents 0c4294c + 24dfe21 commit a24e856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ def post_webhook(repo_token):
log.debug(f'requests.post("{url}", json={json})')
response = requests.post(url, json=json)
response.raise_for_status()
log.debug(f"response.json(): {response.json()}")
assert response.json() == {"done": True}, response.json()
result = response.json()
log.debug(f"response.json(): {result}")
assert result.get("done", False), result


def str_to_bool(value):
Expand Down

0 comments on commit a24e856

Please sign in to comment.