From 578326eccd4749115648382ec8d7922e9c78a614 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 26 Feb 2021 15:13:31 +0100 Subject: [PATCH] tests/e2e: don't use reverse for self.shell_url --- 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 e100eb7c5..f325460b4 100644 --- a/tests/e2e/utils.py +++ b/tests/e2e/utils.py @@ -111,9 +111,9 @@ class SeleniumTestCase(StaticLiveServerTestCase): """reverse `view` with `**kwargs` into full URL using live_server_url""" return self.live_server_url + reverse(view, kwargs=kwargs) - def shell_url(self, view, **kwargs) -> str: + def shell_url(self, view) -> str: """same as self.url() but show URL in shell""" - return f"{self.live_server_url}/#{reverse(view, kwargs=kwargs)}" + return f"{self.live_server_url}/#{view}" def get_shadow_root( self, selector: str, container: Optional[WebElement] = None