diff --git a/recipes/authentik/tests_authentik/cleanup_authentik.py b/recipes/authentik/tests_authentik/cleanup_authentik.py index b556ea4..3f65dfd 100644 --- a/recipes/authentik/tests_authentik/cleanup_authentik.py +++ b/recipes/authentik/tests_authentik/cleanup_authentik.py @@ -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 diff --git a/recipes/authentik/tests_authentik/setup_authentik.py b/recipes/authentik/tests_authentik/setup_authentik.py index 603adb9..9dd6aee 100644 --- a/recipes/authentik/tests_authentik/setup_authentik.py +++ b/recipes/authentik/tests_authentik/setup_authentik.py @@ -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 diff --git a/recipes/nextcloud/tests_nextcloud/setup_nextcloud.py b/recipes/nextcloud/tests_nextcloud/setup_nextcloud.py index 3f18b2c..378c1db 100644 --- a/recipes/nextcloud/tests_nextcloud/setup_nextcloud.py +++ b/recipes/nextcloud/tests_nextcloud/setup_nextcloud.py @@ -10,7 +10,7 @@ from pytest_abra import BaseUrl, DirManager # https://files.test.dev.local-it.cloud/apps/files/ -def setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, URL: BaseUrl): +def test_setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, URL: BaseUrl): """visit nextcloud from authentik with admin_session to create wordpress_admin_session""" with authentik_admin_page.expect_popup() as event_context: authentik_admin_page.get_by_role("link", name="Nextcloud").click() diff --git a/recipes/wordpress/tests_wordpress/setup_wordpress.py b/recipes/wordpress/tests_wordpress/setup_wordpress.py index a65d8fe..3438db7 100644 --- a/recipes/wordpress/tests_wordpress/setup_wordpress.py +++ b/recipes/wordpress/tests_wordpress/setup_wordpress.py @@ -13,7 +13,7 @@ def test_visit_from_domain(authentik_admin_context: BrowserContext, URL: BaseUrl expect(page.locator("#wpadminbar")).to_be_visible(timeout=3_000) -def setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager): +def test_setup_wordpress_admin_session(authentik_admin_page: Page, DIR: DirManager): """visit wordpress from authentik with admin_session to create wordpress_admin_session""" with authentik_admin_page.expect_popup() as event_context: authentik_admin_page.get_by_role("link", name="Wordpress").click() diff --git a/recipes/wordpress/tests_wordpress/setup_wordpress_trigger_email.py b/recipes/wordpress/tests_wordpress/setup_wordpress_trigger_email.py index 33afb6b..9ae1e28 100644 --- a/recipes/wordpress/tests_wordpress/setup_wordpress_trigger_email.py +++ b/recipes/wordpress/tests_wordpress/setup_wordpress_trigger_email.py @@ -5,7 +5,7 @@ from playwright.sync_api import Page, expect from pytest_abra import BaseUrl -def setup_trigger_email(wordpress_admin_page: Page, URL: BaseUrl): +def test_setup_trigger_email(wordpress_admin_page: Page, URL: BaseUrl): """change profile email to EMAIL to trigger email""" page = wordpress_admin_page page.goto(URL.get("wp-admin/profile.php")) diff --git a/tests/test_cli_full_integration.py b/tests/test_cli_full_integration.py index a497055..50c0fb2 100644 --- a/tests/test_cli_full_integration.py +++ b/tests/test_cli_full_integration.py @@ -43,6 +43,7 @@ def test_abratest_cli_full_integration(tmp_output: Path, tmp_recipes: Path): # ----------------------------------- dirs ----------------------------------- # RECIPES_DIR = tmp_recipes.resolve() + # RECIPES_DIR = Path("recipes") OUTPUT_DIR = tmp_output.resolve() # ------------------------------------ run ----------------------------------- # @@ -65,7 +66,7 @@ def test_abratest_cli_full_integration(tmp_output: Path, tmp_recipes: Path): @pytest.mark.slow -def test_results_abra(tmp_output: Path): +def test_full_integration_results(tmp_output: Path): OUTPUT_DIR = tmp_output.resolve() DIR = DirManager(output_dir=OUTPUT_DIR, session_id="abc")