Skip to content

Commit 5977470

Browse files
committed
Fix pytest to use specific app config.
1 parent 48a0974 commit 5977470

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def pytest_configure():
1313
databases = {"default": {"ENGINE": "django.db.backends.sqlite3",}}
1414

1515
installed_apps = [
16-
"example.coffee",
16+
"example.coffee.apps.Config",
1717
]
1818

1919
unicorn_settings = {

example/coffee/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
default_app_config = "coffee.apps.CoffeeConfig"
1+
default_app_config = "coffee.apps.Config"

example/coffee/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.apps import AppConfig
22

33

4-
class CoffeeConfig(AppConfig):
4+
class Config(AppConfig):
55
name = "example.coffee"

0 commit comments

Comments
 (0)