aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2021-06-10 16:41:50 +0530
committerArun Isaac2021-06-10 16:41:50 +0530
commitd8d505208423fe1e7f3c067a0ab4b4002d657620 (patch)
tree1fbeba4e153652124e990bbf78a6bc8ec2f24b56 /tests
parente043df1bcef40cd5934a74c210e1e35d5eb0e5a6 (diff)
downloadexiftool.el-d8d505208423fe1e7f3c067a0ab4b4002d657620.tar.gz
exiftool.el-d8d505208423fe1e7f3c067a0ab4b4002d657620.tar.lz
exiftool.el-d8d505208423fe1e7f3c067a0ab4b4002d657620.zip
tests: Move feature requirements to the top of the code.
Prior to this change, the code that came before the feature requirements errored out due to missing features. * tests/exiftool-tests.el: Move feature requirements to the top of the code.
Diffstat (limited to 'tests')
-rw-r--r--tests/exiftool-tests.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/exiftool-tests.el b/tests/exiftool-tests.el
index 8ed4f1c..36aeb0b 100644
--- a/tests/exiftool-tests.el
+++ b/tests/exiftool-tests.el
@@ -1,7 +1,7 @@
;;; exiftool.el --- Elisp wrapper around exiftool ;; -*- lexical-binding: t -*-
;; Elisp wrapper around exiftool
-;; Copyright (C) 2017, 2019 by Arun I
+;; Copyright (C) 2017, 2019, 2021 by Arun I
;;
;; Author: Arun I <arunisaac@systemreboot.net>
;; Keywords: data
@@ -28,6 +28,10 @@
;;; Code:
+(require 'exiftool)
+(require 'cl-lib)
+(require 'ert)
+
(defvar exiftool-tests--tag-value
'(("Marked" . "True")
("Creator" . "foo")
@@ -43,10 +47,6 @@
tag))
exiftool-tests--tag-value))
-(require 'exiftool)
-(require 'cl-lib)
-(require 'ert)
-
(defmacro with-temp-test-file (test-file temp-file &rest body)
"Copy TEST-FILE to temporary file, put path in TEMP-FILE, evaluate BODY."
(declare (indent defun))