From 18d9782a8a4e7ab134090a03f2667c8945379c15 Mon Sep 17 00:00:00 2001 From: Daniel Brummerloh Date: Wed, 13 Dec 2023 17:01:25 +0100 Subject: [PATCH] fix paths and assert return code --- tests/test_pytest_abra.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_pytest_abra.py b/tests/test_pytest_abra.py index baed132..805ce4c 100644 --- a/tests/test_pytest_abra.py +++ b/tests/test_pytest_abra.py @@ -23,7 +23,7 @@ def test_abratest_cli_full_integration(session_tmp_path_testout: Path): # --------------------------------- env files -------------------------------- # - ENV_FILES_ROOT = Path("../envfiles").resolve() + ENV_FILES_ROOT = Path("./envfiles").resolve() ENV_FILES = [ ENV_FILES_ROOT / "login.test.dev.local-it.cloud.env", # authentik ENV_FILES_ROOT / "blog.test.dev.local-it.cloud.env", # wordpress @@ -33,7 +33,7 @@ def test_abratest_cli_full_integration(session_tmp_path_testout: Path): # ----------------------------------- dirs ----------------------------------- # - RECIPES_DIR = Path("../recipes").resolve() + RECIPES_DIR = Path("./recipes").resolve() # OUTPUT_DIR = Path("./test-output").resolve() OUTPUT_DIR = session_tmp_path_testout.resolve() @@ -53,6 +53,8 @@ def test_abratest_cli_full_integration(session_tmp_path_testout: Path): ] ) + assert result.returncode == 0 + @pytest.mark.slow def test_results_abra(session_tmp_path_testout: Path): @@ -61,4 +63,5 @@ def test_results_abra(session_tmp_path_testout: Path): DIR = DirManager(output_dir=OUTPUT_DIR, session_id="abc") all_files = list(DIR.STATUS.rglob("*")) passed_files = list(DIR.STATUS.rglob("passed-*")) + assert len(all_files) > 0 assert len(all_files) == len(passed_files)