Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Jan 17, 2025
1 parent 4cd9e81 commit 8d7b061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/restapi/tests/test_dxcontent_deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def deserialize(self, body="{}", validate_all=False, context=None, create=False)
return deserializer(validate_all=validate_all, create=create)

def test_deserializer_raises_with_invalid_body(self):
with self.assertRaises(DeserializationError) as cm:
with self.assertRaises(BadRequest) as cm:
self.deserialize(body="Not a JSON object")
self.assertEqual("No JSON object could be decoded", cm.exception.msg)

Expand Down

0 comments on commit 8d7b061

Please sign in to comment.