mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 10:30:58 +00:00
Failing test for #1654
This commit is contained in:
parent
b62faf73ba
commit
999950e9e3
1 changed files with 9 additions and 0 deletions
|
|
@ -157,6 +157,15 @@ class TestImageEditView(TestCase, WagtailTestUtils):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'wagtailimages/images/edit.html')
|
||||
|
||||
@override_settings(WAGTAIL_USAGE_COUNT_ENABLED=True)
|
||||
def test_with_usage_count(self):
|
||||
response = self.get()
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'wagtailimages/images/edit.html')
|
||||
self.assertContains(response, "Used 0 times")
|
||||
expected_url = '/admin/images/usage/%d/' % self.image.id
|
||||
self.assertContains(response, expected_url)
|
||||
|
||||
@override_settings(DEFAULT_FILE_STORAGE='wagtail.tests.dummy_external_storage.DummyExternalStorage')
|
||||
def test_simple_with_external_storage(self):
|
||||
# The view calls get_file_size on the image that closes the file if
|
||||
|
|
|
|||
Loading…
Reference in a new issue