make pytests
This commit is contained in:
@@ -1,19 +1,15 @@
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.append("../")
|
||||
|
||||
from src.exif_data import ExifData
|
||||
import unittest
|
||||
|
||||
|
||||
class TestExifData(unittest.TestCase):
|
||||
exif_data = ExifData(image_path="/my/path/lol",
|
||||
image_name="Secret.png",
|
||||
make="SALAMI",
|
||||
day=10,
|
||||
month=10,
|
||||
year=1010,
|
||||
time=1237127392
|
||||
)
|
||||
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=1278897213)
|
||||
|
||||
assert exif_data.name == "Secret.png"
|
||||
assert exif_data.make == "SALAMI"
|
||||
assert exif_data.make == "CAMERA"
|
||||
|
||||
Reference in New Issue
Block a user