Add Python tests for 2 Sony temperature tags

Check if pretty printing outputs `"n/a"` when used with unsupported
camera models.
This commit is contained in:
postscript-dev 2021-09-24 16:27:50 +01:00
parent 54ee165261
commit 5325056e55
No known key found for this signature in database
GPG Key ID: F3EC02A099292862

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, path
class Sony2FpAmbientTemperatureUnsupportedTagTest(metaclass=CaseMeta):
filename = path("$data_path/exiv2-bug1153Ja.exv")
commands = ["$exiv2 -pa --grep AmbientTemperature $filename"]
stdout = ["""Exif.Sony2Fp.AmbientTemperature SByte 1 n/a
"""
]
stderr = [""]
retval = [0]
class SonyMisc1CameraTemperatureUnsupportedTagTest(metaclass=CaseMeta):
filename = path("$data_path/exiv2-bug1145a.exv")
commands = ["$exiv2 -pa --grep SonyMisc1 $filename"]
stdout = ["""Exif.SonyMisc1.CameraTemperature SByte 1 n/a
"""
]
stderr = [""]
retval = [0]