Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ help: ## ⁉️ - Display help comments for each make command
| awk 'BEGIN { FS=":.*?## " }; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' \
| sort

clean: ## 🗑️ - Removes pycache and test media
clean: ## 🗑️ - Removes pycache and test artifacts
@echo "🗑️ - Removing __pycache__ and test artifacts"
rm -rf test-media test-static .tox
rm -rf .tox
find . -type d -name "__pycache__" -exec rm -r {} +

package-setup:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies = [

[project.optional-dependencies]
testing = [
"tox>=4.22",
"coverage>=7.8.0",
]
linting = [
Expand Down
4 changes: 1 addition & 3 deletions tests/testapp/settings.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import os

from wagtail.test.settings import MEDIA_ROOT, STATIC_ROOT # noqa: F401

DEBUG = "INTERACTIVE" in os.environ

WAGTAILMEDIA_ROOT = os.path.dirname(__file__)
STATIC_ROOT = os.path.join(WAGTAILMEDIA_ROOT, "test-static")
MEDIA_ROOT = os.path.join(WAGTAILMEDIA_ROOT, "test-media")
MEDIA_URL = "/media/"

DATABASES = {
Expand Down