Add test for USE_THOUSAND_SEPARATOR breaking focal point editor

pull/3881/merge
Matt Westcott 2017-10-02 21:08:58 +01:00
rodzic 74080e49b0
commit 6be28b0e99
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -459,6 +459,15 @@ class TestImageEditView(TestCase, WagtailTestUtils):
self.assertNotEqual(self.get_content(new_rendition.file),
old_rendition_data)
@override_settings(USE_L10N=True, USE_THOUSAND_SEPARATOR=True)
def test_no_thousand_separators_in_focal_point_editor(self):
large_image = Image.objects.create(
title="Test image",
file=get_test_image_file(size=(1024, 768)),
)
response = self.client.get(reverse('wagtailimages:edit', args=(large_image.id,)))
self.assertContains(response, 'data-original-width="1024"')
class TestImageDeleteView(TestCase, WagtailTestUtils):
def setUp(self):