Skip to content

Commit

Permalink
Drop default app config
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Nov 24, 2021
1 parent 05bba7d commit 69aec8c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion pinax/images/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkg_resources

default_app_config = "pinax.images.apps.AppConfig"
__version__ = pkg_resources.get_distribution("pinax-images").version
14 changes: 14 additions & 0 deletions pinax/images/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse

from imagekit.registry import generator_registry

from ..models import Image
from .test import TestCase

Expand Down Expand Up @@ -212,3 +214,15 @@ def test_toggle_bad_pk(self):
with self.login(self.user):
self.post(self.view_url, 555)
self.response_404()


class TestImageSpecs(TestCase):

def test_registered_specs(self):
self.assertEqual(list(generator_registry.get_ids()), [
"imagekit:thumbnail",
"pinax_images:image:thumbnail",
"pinax_images:image:list_thumbnail",
"pinax_images:image:small_thumbnail",
"pinax_images:image:medium_thumbnail"
])

0 comments on commit 69aec8c

Please sign in to comment.