aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-04-01 13:17:40 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-04-01 13:17:40 +0200
commite3b9e0e1de60acb441794c36b1aee55ff8f1d94f (patch)
tree96990ea4cd051386ada6b3f6b5971d55f0271ae1
parent78ea2acd5950919ee65960ef8d87359d223a0068 (diff)
downloadfietsboek-e3b9e0e1de60acb441794c36b1aee55ff8f1d94f.tar.gz
fietsboek-e3b9e0e1de60acb441794c36b1aee55ff8f1d94f.tar.bz2
fietsboek-e3b9e0e1de60acb441794c36b1aee55ff8f1d94f.zip
remove import across toplevel
Python seems to do fine, but pylint complains (probably rightfully, since the tests do not represent packages). We lose type hinting for the playwright_helper, but there's probably a better way to do it in the future.
-rw-r--r--tests/playwright/test_profiles.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/playwright/test_profiles.py b/tests/playwright/test_profiles.py
index 40d8ba8..7e5fb3c 100644
--- a/tests/playwright/test_profiles.py
+++ b/tests/playwright/test_profiles.py
@@ -1,16 +1,14 @@
from playwright.sync_api import Page, expect
-from .conftest import Helper
-
-def test_forbidden(page: Page, playwright_helper: Helper):
+def test_forbidden(page: Page, playwright_helper):
john = playwright_helper.john_doe()
with page.expect_response(lambda resp: resp.status == 403):
page.goto(f"/user/{john.id}")
-def test_profile(page: Page, playwright_helper: Helper):
+def test_profile(page: Page, playwright_helper):
playwright_helper.login()
page.goto("/")