From 2dbd76cf906f629333ced8cfdc8e9bedbc0a9bac Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 24 Nov 2021 11:32:45 +0100 Subject: [PATCH] tests/e2e: use StaticLiveServerTestCase Signed-off-by: Jens Langhammer --- tests/e2e/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/utils.py b/tests/e2e/utils.py index 88c5c8f92..ed705d70a 100644 --- a/tests/e2e/utils.py +++ b/tests/e2e/utils.py @@ -6,8 +6,8 @@ from os import environ, makedirs from time import sleep, time from typing import Any, Callable, Optional -from channels.testing import ChannelsLiveServerTestCase from django.apps import apps +from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.db import connection from django.db.migrations.loader import MigrationLoader from django.db.migrations.operations.special import RunPython @@ -44,7 +44,7 @@ def get_docker_tag() -> str: return f"gh-{branch_name}" -class SeleniumTestCase(ChannelsLiveServerTestCase): +class SeleniumTestCase(StaticLiveServerTestCase): """StaticLiveServerTestCase which automatically creates a Webdriver instance""" container: Optional[Container] = None