kopia lustrzana https://github.com/wagtail/wagtail
Update tests
rodzic
5e692072dc
commit
5cee28756d
|
@ -853,12 +853,11 @@ class TestFieldPanel(TestCase):
|
||||||
evaluating `ModelChoiceIterator` instances, and the database query
|
evaluating `ModelChoiceIterator` instances, and the database query
|
||||||
that would trigger.
|
that would trigger.
|
||||||
"""
|
"""
|
||||||
value = get_image_model()(title="Title")
|
image = get_image_model()(title="Title")
|
||||||
expected_result = str(value)
|
|
||||||
with self.assertNumQueries(0):
|
with self.assertNumQueries(0):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.read_only_image_panel.format_value_for_display(value),
|
self.read_only_image_panel.format_value_for_display(image),
|
||||||
expected_result,
|
image,
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_required_fields(self):
|
def test_required_fields(self):
|
||||||
|
|
Ładowanie…
Reference in New Issue