[Python-modules-commits] [python-holidays] 09/11: d/tests: Add simple autopkgtest test

Ondrej Novy onovy at debian.org
Sun Feb 4 11:15:56 UTC 2018


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

onovy pushed a commit to branch master
in repository python-holidays.

commit 5048a2bd2f0cee6a8c866e73b6fd52076f2fd74d
Author: Ondřej Nový <onovy at debian.org>
Date:   Sun Feb 4 12:04:46 2018 +0100

    d/tests: Add simple autopkgtest test
---
 debian/changelog              | 1 +
 debian/tests/control.autodep8 | 2 ++
 debian/tests/test.py          | 7 +++++++
 3 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7e18716..65102e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-holidays (0.9.3-1) UNRELEASED; urgency=medium
   * Standards version is 4.1.3 now (no changes needed)
   * d/control: Set supported Python version to 2.7 and Python 3 version to 3.4
   * d/copyright: Bump copyright years
+  * d/tests: Add simple autopkgtest test
 
  -- Ondřej Nový <onovy at debian.org>  Sun, 04 Feb 2018 11:48:23 +0100
 
diff --git a/debian/tests/control.autodep8 b/debian/tests/control.autodep8
new file mode 100644
index 0000000..34bbabe
--- /dev/null
+++ b/debian/tests/control.autodep8
@@ -0,0 +1,2 @@
+Tests: test.py
+Depends: @
diff --git a/debian/tests/test.py b/debian/tests/test.py
new file mode 100755
index 0000000..e8479b0
--- /dev/null
+++ b/debian/tests/test.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python3
+
+import holidays
+import sys
+
+us_holidays = holidays.US()
+sys.exit(us_holidays.get('2014-01-01') != "New Year's Day")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-holidays.git



More information about the Python-modules-commits mailing list