Skip to content

Commit

Permalink
Revert "tests: Use staticfiles handler to avoid need of collectstatic"
Browse files Browse the repository at this point in the history
This reverts commit b14728a.

It does not address icons loading.
  • Loading branch information
nijel committed Feb 15, 2024
1 parent cdc3a1e commit f181404
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ run-selenium:
@rm -rf ../data-test ../test-images
@cd .. && \
. scripts/test-database.sh && \
./manage.py collectstatic --noinput && \
./manage.py test --keepdb --failfast weblate.trans.tests.test_selenium.SeleniumTests

SCREENSHOTS = $(wildcard screenshots/*.webp)
Expand Down
2 changes: 0 additions & 2 deletions weblate/trans/tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from unittest import SkipTest

from django.conf import settings
from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.core import mail
from django.test.utils import modify_settings, override_settings
from django.urls import reverse
Expand Down Expand Up @@ -83,7 +82,6 @@ class SeleniumTests(
"test-images",
)
site_domain = ""
static_handler = StaticFilesHandler

@contextmanager
def wait_for_page_load(self, timeout=30):
Expand Down

0 comments on commit f181404

Please sign in to comment.