[diffoscope] 04/05: t/comparators/utils/data: add a load_fixture() function wrapping both init_fixture() and data()

Mattia Rizzolo mattia at debian.org
Mon Jan 16 09:47:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch wip/tests-dry
in repository diffoscope.

commit ea5c61e4101e8311b985fe1cb93c87fb2d3fd560
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Jan 15 20:01:51 2017 +0100

    t/comparators/utils/data: add a load_fixture() function wrapping both init_fixture() and data()
---
 tests/comparators/utils/data.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/comparators/utils/data.py b/tests/comparators/utils/data.py
index f73e356..e2da749 100644
--- a/tests/comparators/utils/data.py
+++ b/tests/comparators/utils/data.py
@@ -38,3 +38,7 @@ def data(filename):
         'data',
         filename,
     )
+
+
+def load_fixture(filename):
+    return init_fixture(data(filename))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git



More information about the Reproducible-commits mailing list