diff --git a/tests/test_pytest_abra.py b/tests/test_pytest_abra.py index 4418064..b87e788 100644 --- a/tests/test_pytest_abra.py +++ b/tests/test_pytest_abra.py @@ -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