Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
New 0002-Skip-tests-if-data-are-not-available.patch
· 80daf01f
Antonio Valentino
authored
Dec 23, 2018
80daf01f
Set distribution to unstable
· 1bce3847
Antonio Valentino
authored
Dec 23, 2018
1bce3847
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
1bce3847
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@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 → 100644
View file @
1bce3847
From: Antonio Valentino <antonio.valentino@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
View file @
1bce3847
0001-Skip-tests-using-on-xarray-or-dask-if-they-are-not-a.patch
0002-Skip-tests-if-data-are-not-available.patch