Skip to content

Commit

Permalink
Merge pull request #75 from cfpb/deprecate/wagtail-testapp
Browse files Browse the repository at this point in the history
Deprecate reliance on Wagtail's testapp
  • Loading branch information
chosak authored Aug 15, 2023
2 parents f8efa24 + 3943834 commit d49b2f5
Showing 1 changed file with 16 additions and 39 deletions.
55 changes: 16 additions & 39 deletions wagtailflags/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,6 @@
},
}

WAGTAIL_APPS = (
"wagtail.contrib.forms",
"wagtail.contrib.modeladmin",
"wagtail.contrib.settings",
"wagtail.admin",
"wagtail.documents",
"wagtail.images",
"wagtail.snippets",
"wagtail.sites",
"wagtail.users",
)

WAGTAIL_APPS += (
"wagtail",
"wagtail.test.testapp",
)
WAGTAILADMIN_RICH_TEXT_EDITORS = {
"default": {"WIDGET": "wagtail.admin.rich_text.DraftailRichTextArea"},
"custom": {"WIDGET": "wagtail.test.testapp.rich_text.CustomRichTextArea"},
}

WAGTAILADMIN_BASE_URL = "http://localhost:8000"

MIDDLEWARE = (
Expand All @@ -57,27 +36,25 @@
)

INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.messages",
"django.contrib.sessions",
)


INSTALLED_APPS = (
(
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.messages",
"django.contrib.sessions",
"django.contrib.staticfiles",
"taggit",
)
+ WAGTAIL_APPS
+ (
"flags",
"wagtailflags",
)
"django.contrib.staticfiles",
"taggit",
"wagtail",
"wagtail.contrib.forms",
"wagtail.contrib.modeladmin",
"wagtail.contrib.settings",
"wagtail.admin",
"wagtail.documents",
"wagtail.images",
"wagtail.snippets",
"wagtail.sites",
"wagtail.users",
"flags",
"wagtailflags",
)

STATIC_URL = "/static/"
Expand Down

0 comments on commit d49b2f5

Please sign in to comment.