changed to dict

This commit is contained in:
2023-12-21 11:27:29 +01:00
parent 3c8974ee74
commit f8383567fe
5 changed files with 43 additions and 17 deletions

View File

@@ -4,12 +4,18 @@ import unittest
class TestExifData(unittest.TestCase):
def test_exif_data(self):
exif_data = ExifData(image_path="/path/to/image",
image_name="Image.jpeg",
make="CAMERA",
month=12,
day=12,
year=2023,
time="10:10:10")
exif_data_dict = {
"day": 2,
"month": 2,
"year": 2222,
"make": "CAMERA",
"time": "10:10:10",
"image_path": "/path/to/image",
"image_name": "Image.jpeg"
}
exif_data = ExifData(exif_data_dict)
assert exif_data.make == "CAMERA"
assert exif_data.year == 2222
assert exif_data.time == "10:10:10"