fix paths and assert return code
This commit is contained in:
parent
0d6bd2d0f8
commit
18d9782a8a
1 changed files with 5 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ def test_abratest_cli_full_integration(session_tmp_path_testout: Path):
|
||||||
|
|
||||||
# --------------------------------- env files -------------------------------- #
|
# --------------------------------- env files -------------------------------- #
|
||||||
|
|
||||||
ENV_FILES_ROOT = Path("../envfiles").resolve()
|
ENV_FILES_ROOT = Path("./envfiles").resolve()
|
||||||
ENV_FILES = [
|
ENV_FILES = [
|
||||||
ENV_FILES_ROOT / "login.test.dev.local-it.cloud.env", # authentik
|
ENV_FILES_ROOT / "login.test.dev.local-it.cloud.env", # authentik
|
||||||
ENV_FILES_ROOT / "blog.test.dev.local-it.cloud.env", # wordpress
|
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 ----------------------------------- #
|
# ----------------------------------- dirs ----------------------------------- #
|
||||||
|
|
||||||
RECIPES_DIR = Path("../recipes").resolve()
|
RECIPES_DIR = Path("./recipes").resolve()
|
||||||
# OUTPUT_DIR = Path("./test-output").resolve()
|
# OUTPUT_DIR = Path("./test-output").resolve()
|
||||||
OUTPUT_DIR = session_tmp_path_testout.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
|
@pytest.mark.slow
|
||||||
def test_results_abra(session_tmp_path_testout: Path):
|
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")
|
DIR = DirManager(output_dir=OUTPUT_DIR, session_id="abc")
|
||||||
all_files = list(DIR.STATUS.rglob("*"))
|
all_files = list(DIR.STATUS.rglob("*"))
|
||||||
passed_files = list(DIR.STATUS.rglob("passed-*"))
|
passed_files = list(DIR.STATUS.rglob("passed-*"))
|
||||||
|
assert len(all_files) > 0
|
||||||
assert len(all_files) == len(passed_files)
|
assert len(all_files) == len(passed_files)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue