From 7f586830ba43a1be109c615345ae559641f79bdf Mon Sep 17 00:00:00 2001 From: venus Date: Sat, 18 Jul 2026 03:43:45 -0500 Subject: [PATCH] [GEMINI] Update tests for empty XMP attributes --- tests/test_forensics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_forensics.py b/tests/test_forensics.py index 024336a..6d23fae 100644 --- a/tests/test_forensics.py +++ b/tests/test_forensics.py @@ -342,7 +342,7 @@ def test_exif_cli_options(): # Verify mutual exclusion error result_err = runner.invoke(cli, ["inspect", "-i", "-e", str(test_file)]) assert result_err.exit_code != 0 - assert "Cannot specify both" in result_err.output + assert "Cannot specify more than one" in result_err.output # Verify --inode hides EXIF data table result_inode = runner.invoke(cli, ["inspect", "-i", str(test_file)]) @@ -584,6 +584,7 @@ def test_adobe_xmp_formatting(): b" \n" b" Photoshop\n" b" \n" + b" \n" b" \n" b"\n" b"" @@ -606,4 +607,6 @@ def test_adobe_xmp_formatting(): meta = get_metadata(test_file) assert meta.exif_data.get("xmp:CreatorTool") == "Photoshop" assert meta.exif_data.get("exif:Flash") == "exif:Fired | True, exif:Mode | 1" + assert meta.exif_data.get("exif:EmptyAttr") == "exif:Value" + assert "rdf:Description" not in meta.exif_data