Skip to content

Commit

Permalink
Refs #34119 -- Skipped test_callable_default_hidden_widget_value_not_…
Browse files Browse the repository at this point in the history
…overridden when JSONField is not supported.
  • Loading branch information
felixxm authored Nov 28, 2022
1 parent 20d575b commit 60a7bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/forms_tests/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.db import models
from django.forms import CharField, FileField, Form, ModelForm
from django.forms.models import ModelFormMetaclass
from django.test import SimpleTestCase, TestCase
from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature

from ..models import (
BoundaryModel,
Expand Down Expand Up @@ -203,6 +203,7 @@ def test_initial_instance_value(self):
""",
)

@skipUnlessDBFeature("supports_json_field")
def test_callable_default_hidden_widget_value_not_overridden(self):
class FieldWithCallableDefaultsModel(models.Model):
int_field = models.IntegerField(default=lambda: 1)
Expand Down

0 comments on commit 60a7bd8

Please sign in to comment.