Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Aug 1, 2024
1 parent baf5642 commit eb65840
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/test_coastline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from coastlines.continental import continental_cli
from coastlines.validation import validation_cli

import os
os.environ['CLICK_DEBUG'] = '1'

@pytest.mark.dependency()
def test_generate_rasters_cli():
runner = CliRunner()
Expand Down Expand Up @@ -90,5 +93,12 @@ def test_validation_cli():
"True",
],
)
# assert result.output == '' # for debugging
assert result.exit_code == 0

print("CLI Output:")
print(result.output)

captured = capsys.readouterr()
print("Stdout:", captured.out)
print("Stderr:", captured.err)

assert result.exit_code == 0, f"Command failed with exit code {result.exit_code}. Exception:\n{result.exception}"

0 comments on commit eb65840

Please sign in to comment.