[GEMINI] Update tests for empty XMP attributes
This commit is contained in:
@@ -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" <rdf:Description rdf:about='' xmlns:xmp='http://ns.adobe.com/xap/1.0/' xmlns:exif='http://ns.adobe.com/exif/1.0/'>\n"
|
||||
b" <xmp:CreatorTool>Photoshop</xmp:CreatorTool>\n"
|
||||
b" <exif:Flash exif:Fired='True' exif:Mode='1'/>\n"
|
||||
b" <exif:EmptyAttr exif:Value=''/>\n"
|
||||
b" </rdf:Description>\n"
|
||||
b"</rdf:RDF>\n"
|
||||
b"</x:xmpmeta>"
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user