[diffoscope] 05/05: Add a test to ensure that PATH is modified.
Chris Lamb
chris at chris-lamb.co.uk
Tue Mar 28 21:40:19 CEST 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch experimental
in repository diffoscope.
commit e5422854dac89d42c3a972c9d7301b16dae7ca50
Author: Chris Lamb <lamby at debian.org>
Date: Tue Mar 28 20:36:52 2017 +0100
Add a test to ensure that PATH is modified.
Signed-off-by: Chris Lamb <lamby at debian.org>
---
tests/test_tools.py | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/tests/test_tools.py b/tests/test_tools.py
new file mode 100644
index 0000000..cf5320e
--- /dev/null
+++ b/tests/test_tools.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+#
+# diffoscope: in-depth comparison of files, archives, and directories
+#
+# Copyright © 2017 Chris Lamb <lamby at debian.org>
+#
+# diffoscope is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# diffoscope is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
+
+
+def test_sbin_added_to_path():
+ from diffoscope.tools import tool_required
+
+ @tool_required('init')
+ def fn():
+ pass
+
+ fn()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list