|
25 | 25 | import shutil |
26 | 26 |
|
27 | 27 | from c2pa import Builder, C2paError as Error, Reader, C2paSigningAlg as SigningAlg, C2paSignerInfo, Signer, sdk_version |
28 | | -from c2pa.c2pa import Stream, read_ingredient_file, read_file, sign_file, load_settings, create_signer, sign_file_with_callback_signer |
| 28 | +from c2pa.c2pa import Stream, read_ingredient_file, read_file, sign_file, load_settings, create_signer, sign_file_using_callback_signer |
29 | 29 |
|
30 | 30 | # Suppress deprecation warnings |
31 | 31 | warnings.filterwarnings("ignore", category=DeprecationWarning) |
@@ -895,8 +895,8 @@ def sign_callback(data: bytes) -> bytes: |
895 | 895 | # Clean up the temporary directory |
896 | 896 | shutil.rmtree(temp_dir) |
897 | 897 |
|
898 | | - def test_sign_file_with_callback_signer(self): |
899 | | - """Test signing a file using the sign_file_with_callback_signer function.""" |
| 898 | + def test_sign_file_using_callback_signer(self): |
| 899 | + """Test signing a file using the sign_file_using_callback_signer function.""" |
900 | 900 | # Create a temporary directory for the test |
901 | 901 | temp_dir = tempfile.mkdtemp() |
902 | 902 | try: |
@@ -937,10 +937,10 @@ def sign_callback(data: bytes) -> bytes: |
937 | 937 | ) |
938 | 938 |
|
939 | 939 | # Import the new function |
940 | | - from c2pa.c2pa import sign_file_with_callback_signer |
| 940 | + from c2pa.c2pa import sign_file_using_callback_signer |
941 | 941 |
|
942 | | - # Use the sign_file_with_callback_signer function |
943 | | - manifest_bytes = sign_file_with_callback_signer( |
| 942 | + # Use the sign_file_using_callback_signer function |
| 943 | + manifest_bytes = sign_file_using_callback_signer( |
944 | 944 | source_path=self.testPath, |
945 | 945 | dest_path=output_path, |
946 | 946 | manifest=self.manifestDefinition, |
|
0 commit comments