From e72a0a44a409306b88649acfd72450331c88be9c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 12 Jul 2020 10:41:53 +0200 Subject: [PATCH] Fix tests crash on SQLite without JSON1 extension. --- tests/test_serializer_nested.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_serializer_nested.py b/tests/test_serializer_nested.py index a614e05d1..09ac37f24 100644 --- a/tests/test_serializer_nested.py +++ b/tests/test_serializer_nested.py @@ -311,6 +311,9 @@ if postgres_fields: """Model declaring a postgres JSONField""" data = postgres_fields.JSONField() + class Meta: + required_db_features = {'supports_json_field'} + @pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed') class TestNestedNonRelationalFieldWrite: