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:
parent
54ee165261
commit
5325056e55
25
tests/bugfixes/github/test_pr_1926.py
Normal file
25
tests/bugfixes/github/test_pr_1926.py
Normal 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]
|
||||
Loading…
Reference in New Issue
Block a user