We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3edfc52 commit b9414c6Copy full SHA for b9414c6
tests/model_fields/test_jsonfield.py
@@ -45,8 +45,8 @@
45
@skipUnlessDBFeature("supports_json_field")
46
class JSONFieldTests(TestCase):
47
def test_invalid_value(self):
48
- msg = "is not JSON serializable"
49
- with self.assertRaisesMessage(TypeError, msg):
+ msg = "cannot encode native uuid.UUID with UuidRepresentation.UNSPECIFIED"
+ with self.assertRaisesMessage(ValueError, msg):
50
NullableJSONModel.objects.create(
51
value={
52
"uuid": uuid.UUID("d85e2076-b67c-4ee7-8c3a-2bf5a2cc2475"),
0 commit comments