Skip to content

Commit

Permalink
Fix bad json test
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 16, 2023
1 parent b467d44 commit d3bdd59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def test_bad_post(self):
}
except AssertionError:
assert json.loads(response.data) == {"error": "Malformed json"}
except json.JSONDecodeError:
assert response.status_code == 415

response = client.post(
"/job", data='{"ffsfsafsa":moo}', content_type="application/json"
Expand Down

0 comments on commit d3bdd59

Please sign in to comment.