rename test

This commit is contained in:
Daniel 2023-12-11 15:42:27 +01:00
parent 44203f3050
commit 8feebb9270

View file

@ -12,7 +12,7 @@ def session_tmp_path_testout(tmp_path_factory: pytest.TempPathFactory) -> Path:
@pytest.mark.slow
def test_pytest_abra(session_tmp_path_testout: Path):
def test_abratest_cli_full_integration(session_tmp_path_testout: Path):
"""run abratest against the dev instance"""
# --------------------- load credentials to env variables -------------------- #
@ -51,15 +51,23 @@ def test_pytest_abra(session_tmp_path_testout: Path):
RECIPES_DIR,
"--output_dir",
OUTPUT_DIR,
]
],
capture_output=True,
)
with open(OUTPUT_DIR / "tempfile_stdout.txt", "w") as f:
f.write(str(result.stdout))
with open(OUTPUT_DIR / "tempfile_stderr.txt", "w") as f:
f.write(str(result.stderr))
# print(result)
assert result.returncode == 0
assert "failed" not in str(result.stdout)
with open(OUTPUT_DIR / "tempfile.txt", "w") as f:
f.write(str(result.stdout))
# assert False
# @pytest.mark.slow