File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- c2pa-v0.59 .1
1
+ c2pa-v0.60 .1
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " c2pa-python"
7
- version = " 0.13 .0"
7
+ version = " 0.14 .0"
8
8
requires-python = " >=3.10"
9
9
description = " Python bindings for the C2PA Content Authenticity Initiative (CAI) library"
10
10
readme = { file = " README.md" , content-type = " text/markdown" }
Original file line number Diff line number Diff line change 40
40
41
41
class TestC2paSdk (unittest .TestCase ):
42
42
def test_sdk_version (self ):
43
- self .assertIn ("0.59 .1" , sdk_version ())
43
+ self .assertIn ("0.60 .1" , sdk_version ())
44
44
45
45
46
46
class TestReader (unittest .TestCase ):
@@ -956,6 +956,7 @@ def test_builder_sign_with_setting_no_thumbnail_and_ingredient(self):
956
956
# Verify the first ingredient's title matches what we set
957
957
first_ingredient = active_manifest ["ingredients" ][0 ]
958
958
self .assertEqual (first_ingredient ["title" ], "Test Ingredient" )
959
+ self .assertNotIn ("thumbnail" , first_ingredient )
959
960
960
961
builder .close ()
961
962
@@ -1791,7 +1792,10 @@ def test_read_ingredient_file_who_has_no_manifest(self):
1791
1792
ingredient_data = json .loads (ingredient_json_with_dir )
1792
1793
self .assertEqual (ingredient_data ["title" ], INGREDIENT_TEST_FILE_NAME )
1793
1794
self .assertEqual (ingredient_data ["format" ], "image/jpeg" )
1794
- self .assertIn ("thumbnail" , ingredient_data )
1795
+ self .assertNotIn ("thumbnail" , ingredient_data )
1796
+
1797
+ # Reset setting
1798
+ load_settings ('{"builder": { "thumbnail": {"enabled": true}}}' )
1795
1799
1796
1800
def test_compare_read_ingredient_file_with_builder_added_ingredient (self ):
1797
1801
"""Test reading a C2PA ingredient from a file."""
You can’t perform that action at this time.
0 commit comments