From 748297c98a9236432e3f1064417098f9d4084987 Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Fri, 2 Aug 2024 09:46:53 +1000 Subject: [PATCH] Debug --- tests/test_coastline.py | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/test_coastline.py b/tests/test_coastline.py index 13ce47b..1ebe466 100644 --- a/tests/test_coastline.py +++ b/tests/test_coastline.py @@ -76,34 +76,34 @@ def test_generate_continental_cli(): # assert result.output == '' # for debugging assert result.exit_code == 0 -@pytest.mark.dependency(depends=["test_generate_continental_cli"]) -def test_validation_cli(capsys): - runner = CliRunner() - result = runner.invoke( - validation_cli, - [ - "--inputs_path", - "data/validation/interim/wrl_narrabeen", - "--deacl_path", - "data/processed/tests/coastlines_tests.gpkg", - "--prefix", - "tests", - "--append_stats", - "True", - "--markdown_report", - "True", - ], - ) +# @pytest.mark.dependency(depends=["test_generate_continental_cli"]) +# def test_validation_cli(capsys): +# runner = CliRunner() +# result = runner.invoke( +# validation_cli, +# [ +# "--inputs_path", +# "data/validation/interim/wrl_narrabeen", +# "--deacl_path", +# "data/processed/tests/coastlines_tests.gpkg", +# "--prefix", +# "tests", +# "--append_stats", +# "True", +# "--markdown_report", +# "True", +# ], +# ) - # Prepare detailed error information - error_info = { - "exit_code": result.exit_code, - "output": result.output, - "exception": str(result.exception) if result.exception else None, - } +# # Prepare detailed error information +# error_info = { +# "exit_code": result.exit_code, +# "output": result.output, +# "exception": str(result.exception) if result.exception else None, +# } - # Convert error_info to a formatted string - error_details = json.dumps(error_info, indent=2) +# # Convert error_info to a formatted string +# error_details = json.dumps(error_info, indent=2) - # Use the detailed error information in the assertion message - assert result.exit_code == 0, f"Command failed. Error details:\n{error_details}" +# # Use the detailed error information in the assertion message +# assert result.exit_code == 0, f"Command failed. Error details:\n{error_details}"