tests/e2e: don't use reverse for self.shell_url

This commit is contained in:
Jens Langhammer 2021-02-26 15:13:31 +01:00
parent 2335ccddaa
commit 578326eccd

View file

@ -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