rename all setups and cleanups to test_ for stable test discovery

This commit is contained in:
Daniel 2023-12-15 16:06:43 +01:00
parent 33a9cca5aa
commit 3839e1e9b1
6 changed files with 8 additions and 7 deletions

View file

@ -27,7 +27,7 @@ def remove_user(admin_context: BrowserContext, URL: BaseUrl):
page.get_by_role("dialog").get_by_role("button", name=re.compile(r"Löschen|Delete")).click()
def cleanup_delete_user(
def test_cleanup_delete_user(
context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl, check_if_user_exists
):
# load admin cookies to context

View file

@ -12,7 +12,7 @@ TEST_USER = os.environ["TEST_USER"]
TEST_PASS = os.environ["TEST_PASS"]
def setup_admin_state(context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl):
def test_setup_admin_state(context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl):
# go to page
page = context.new_page()
page.goto(URL.get())
@ -83,7 +83,7 @@ def create_user(user_context: BrowserContext, invitelink):
expect(page.locator("ak-library")).to_be_visible()
def setup_user_state(
def test_setup_user_state(
context: BrowserContext, env_config: dict[str, str], DIR: DirManager, URL: BaseUrl, check_if_user_exists
):
# load admin cookies to context