Skip to content

Commit 94f021f

Browse files
committed
Improve table comparison AssertionError message
1 parent 59078e3 commit 94f021f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_examples/test_hk_kaitak_ags3_to_brgi_geodb.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_kaitak_ags3_notebook_runs_and_creates_gpkg(examples_dir):
5454

5555
# Check that the script ran successfully
5656
assert result.returncode == 0, (
57-
f"\n📛 Running `uvx run marimo notebook.py` failed with code {result.returncode}\n"
57+
f"📛 Running `uvx run marimo notebook.py` failed with code {result.returncode}\n"
5858
f"📄 STDOUT:\n{result.stdout}\n"
5959
f"⚠️ STDERR:\n{result.stderr}"
6060
)
@@ -80,7 +80,9 @@ def test_kaitak_ags3_notebook_runs_and_creates_gpkg(examples_dir):
8080

8181
assert tables_original == tables_output, (
8282
f"The original GeoPackage {temp_original_gpkg_path.name} and the output "
83-
"GeoPackage {gpkg_output_path.name} have different tables."
83+
f"GeoPackage {gpkg_output_path.name} have different tables:\n"
84+
f"Original: {tables_original}\n"
85+
f"Output: {tables_output}"
8486
)
8587

8688
important_tables = [

0 commit comments

Comments
 (0)