Skip to content

Commit 5325056

Browse files
Add Python tests for 2 Sony temperature tags
Check if pretty printing outputs `"n/a"` when used with unsupported camera models.
1 parent 54ee165 commit 5325056

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from system_tests import CaseMeta, path
4+
5+
class Sony2FpAmbientTemperatureUnsupportedTagTest(metaclass=CaseMeta):
6+
7+
filename = path("$data_path/exiv2-bug1153Ja.exv")
8+
commands = ["$exiv2 -pa --grep AmbientTemperature $filename"]
9+
10+
stdout = ["""Exif.Sony2Fp.AmbientTemperature SByte 1 n/a
11+
"""
12+
]
13+
stderr = [""]
14+
retval = [0]
15+
16+
class SonyMisc1CameraTemperatureUnsupportedTagTest(metaclass=CaseMeta):
17+
18+
filename = path("$data_path/exiv2-bug1145a.exv")
19+
commands = ["$exiv2 -pa --grep SonyMisc1 $filename"]
20+
21+
stdout = ["""Exif.SonyMisc1.CameraTemperature SByte 1 n/a
22+
"""
23+
]
24+
stderr = [""]
25+
retval = [0]

0 commit comments

Comments
 (0)