Skip to content

Commit f3f7923

Browse files
committed
include test of shutter mode and mech shutter count in lensdata 8 test
1 parent 51bd57e commit f3f7923

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

tests/bugfixes/github/test_pr_1437.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
import system_tests
44

5+
# extended to also test include shutter mode and mechanical shutter count (pr 1444)
56
class Nikon_LensData8(metaclass=system_tests.CaseMeta):
67
url = "https://github.com/Exiv2/exiv2/pull/1437"
78
filename = "$data_path/CH0_0174.exv"
8-
commands = ["$exiv2 -g lens/i -g aperture/i $filename"]
9+
commands = ["$exiv2 -g lens/i -g aperture/i -g shutter/i $filename"]
910
stderr = [""]
10-
stdout = ["""Exif.Nikon3.LensType Byte 1 D G VR
11+
stdout = ["""Exif.Nikon3.ShutterMode Short 1 Auto (Electronic Front Curtain)
12+
Exif.Nikon3.MechanicalShutterCount Long 1 174
13+
Exif.Nikon3.LensType Byte 1 D G VR
1114
Exif.Nikon3.Lens Rational 4 70-200mm F2.8
1215
Exif.Nikon3.LensFStops Undefined 4 6
1316
Exif.NikonLd4.AFAperture Byte 1 F2.8
@@ -18,6 +21,7 @@ class Nikon_LensData8(metaclass=system_tests.CaseMeta):
1821
Exif.NikonLd4.EffectiveMaxAperture Byte 1 F2.8
1922
Exif.NikonLd4.LensID Short 1 0
2023
Exif.NikonLd4.MaxAperture Short 1 F0.5
24+
Exif.Nikon3.ShutterCount Long 1 174
2125
Exif.Photo.LensSpecification Rational 4 700/10 2000/10 280/100 280/100
2226
Exif.Photo.LensMake Ascii 6
2327
Exif.Photo.LensModel Ascii 65

tests/bugfixes/github/test_pr_1444.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)