[Git][debian-gis-team/pyorbital][master] 2 commits: New 0002-Skip-tests-if-data-are-not-available.patch
Antonio Valentino
gitlab at salsa.debian.org
Sun Dec 23 07:40:47 GMT 2018
Antonio Valentino pushed to branch master at Debian GIS Project / pyorbital
Commits:
80daf01f by Antonio Valentino at 2018-12-23T07:31:21Z
New 0002-Skip-tests-if-data-are-not-available.patch
- - - - -
1bce3847 by Antonio Valentino at 2018-12-23T07:31:55Z
Set distribution to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/0002-Skip-tests-if-data-are-not-available.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+pyorbital (1.5.0-2) unstable; urgency=medium
+
+ * debian/patches
+ - new 0002-Skip-tests-if-data-are-not-available.patch
+ to skip tests that use data that are not installed.
+ Fixex a debian ci issue.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sun, 23 Dec 2018 07:31:41 +0000
+
pyorbital (1.5.0-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/patches/0002-Skip-tests-if-data-are-not-available.patch
=====================================
@@ -0,0 +1,28 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sun, 23 Dec 2018 07:20:42 +0000
+Subject: Skip tests if data are not available
+
+---
+ pyorbital/tests/test_aiaa.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/pyorbital/tests/test_aiaa.py b/pyorbital/tests/test_aiaa.py
+index 365f237..519b0f6 100644
+--- a/pyorbital/tests/test_aiaa.py
++++ b/pyorbital/tests/test_aiaa.py
+@@ -79,10 +79,15 @@ def get_results(satnumber, delay):
+ line = f_2.readline()
+
+
++_DATAPATH = os.path.dirname(os.path.abspath(__file__))
++
+ class AIAAIntegrationTest(unittest.TestCase):
+ """Test against the AIAA test cases.
+ """
+
++ @unittest.skipIf(
++ not os.path.exists(os.path.join(_DATAPATH, "SGP4-VER.TLE")),
++ 'SGP4-VER.TLE not available')
+ def test_aiaa(self):
+ """Do the tests against AIAA test cases.
+ """
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
0001-Skip-tests-using-on-xarray-or-dask-if-they-are-not-a.patch
+0002-Skip-tests-if-data-are-not-available.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/compare/37af4bfabe73571c5e23464be757e4b29aeecd6a...1bce38470fe4d33cd4e6ce6eaa22c3e3d500e1be
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/compare/37af4bfabe73571c5e23464be757e4b29aeecd6a...1bce38470fe4d33cd4e6ce6eaa22c3e3d500e1be
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20181223/0243d834/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list