torchbox / django-pattern-library

UI pattern libraries for Django templates
https://torchbox.github.io/django-pattern-library/
BSD 3-Clause "New" or "Revised" License
360 stars 44 forks source link

When I run pytest i get a warning about default_app_config #153

Closed simkimsia closed 2 years ago

simkimsia commented 3 years ago

Found a bug? Please fill out the sections below. 👍

Issue Summary

When i run pytest, i get a warning

RemovedInDjango41Warning: 'pattern_library' defines default_app_config = 'pattern_library.apps.PatternLibraryAppConfig'. Django now detects this configuration automatically. You can remove default_app_config.
    app_config = AppConfig.create(entry)

Steps to Reproduce

Install pattern-library. Run pytest

Technical details

This is due to django 3.2

also see this PR for allauth that has a similar issue. https://github.com/pennersr/django-allauth/pull/2829

thibaudcolas commented 2 years ago

Fixed in #160.