We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb7187c commit 91d1b66Copy full SHA for 91d1b66
tests/test_unit_tests.py
@@ -674,6 +674,16 @@ def setUp(self):
674
# That file has C2PA metadata, so there is something to read
675
self.testPath = os.path.join(self.data_dir, "C.jpg")
676
677
+ # Create temp directory for tests
678
+ self.temp_data_dir = os.path.join(self.data_dir, "temp_data")
679
+ os.makedirs(self.temp_data_dir, exist_ok=True)
680
+
681
+ def tearDown(self):
682
+ """Clean up temporary files after each test."""
683
+ if os.path.exists(self.temp_data_dir):
684
+ import shutil
685
+ shutil.rmtree(self.temp_data_dir)
686
687
def test_read_ingredient_file(self):
688
"""Test reading a C2PA ingredient from a file."""
689
# Test reading ingredient from file with data_dir
0 commit comments