-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add camera models for NikonFl3 makernotes group (#1994)
* Add camera models for NikonFl3 * Python test for new NikonFl3 camera models
- Loading branch information
1 parent
7c8e6fc
commit 1ae9f42
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import system_tests | ||
from system_tests import CaseMeta, path | ||
|
||
class TestAddModelsForNikonFl3(metaclass=CaseMeta): | ||
""" | ||
Enables NikonFl3 group to be used by more camera models | ||
""" | ||
|
||
filename1 = path("$data_path/pr_1994_poc1.jpg") | ||
filename2 = path("$data_path/pr_1994_poc2.jpg") | ||
commands = ["$exiv2 --grep NikonFl3 $filename1", | ||
"$exiv2 --grep NikonFl3 $filename2" | ||
] | ||
stdout = ["""Exif.NikonFl3.Version Undefined 4 1.04 | ||
Exif.NikonFl3.FlashSource Byte 1 None | ||
Exif.NikonFl3.ExternalFlashFirmware Short 1 n/a | ||
Exif.NikonFl3.ExternalFlashFlags Byte 1 Fired | ||
Exif.NikonFl3.FlashFocalLength Byte 1 n/a | ||
Exif.NikonFl3.RepeatingFlashRate Byte 1 n/a | ||
Exif.NikonFl3.RepeatingFlashCount Byte 1 n/a | ||
Exif.NikonFl3.FlashGNDistance Byte 1 None | ||
Exif.NikonFl3.FlashColorFilter Byte 1 None | ||
""", | ||
"""Exif.NikonFl3.Version Undefined 4 1.05 | ||
Exif.NikonFl3.FlashSource Byte 1 None | ||
Exif.NikonFl3.ExternalFlashFirmware Short 1 n/a | ||
Exif.NikonFl3.ExternalFlashFlags Byte 1 Fired | ||
Exif.NikonFl3.FlashFocalLength Byte 1 n/a | ||
Exif.NikonFl3.RepeatingFlashRate Byte 1 n/a | ||
Exif.NikonFl3.RepeatingFlashCount Byte 1 n/a | ||
Exif.NikonFl3.FlashGNDistance Byte 1 None | ||
Exif.NikonFl3.FlashColorFilter Byte 1 None | ||
"""] | ||
stderr = [""]*2 | ||
retval = [0]*2 | ||
|