[Git][debian-gis-team/pykml][master] Fix autopkgtest
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sun Jun 12 15:50:01 BST 2022
Antonio Valentino pushed to branch master at Debian GIS Project / pykml
Commits:
166efdaf by Antonio Valentino at 2022-06-12T14:47:35+00:00
Fix autopkgtest
- - - - -
1 changed file:
- debian/patches/0002-fix-tests.patch
Changes:
=====================================
debian/patches/0002-fix-tests.patch
=====================================
@@ -14,11 +14,11 @@ The patch is not forwarded upstream because:
comparison
* excluding test code that access the internet is a debian specific need
---
- src/pykml/test/test_factory.py | 41 +++++++++++++++++---------------
+ src/pykml/test/test_factory.py | 41 ++++++++++++++++--------------
src/pykml/test/test_helpers.py | 2 +-
- src/pykml/test/test_parser.py | 54 +++++++++++++++++++++---------------------
- src/pykml/test/test_util.py | 16 ++++++-------
- 4 files changed, 58 insertions(+), 55 deletions(-)
+ src/pykml/test/test_parser.py | 57 ++++++++++++++++++++++--------------------
+ src/pykml/test/test_util.py | 16 ++++++------
+ 4 files changed, 61 insertions(+), 55 deletions(-)
diff --git a/src/pykml/test/test_factory.py b/src/pykml/test/test_factory.py
index ebd85ab..90e1676 100644
@@ -185,10 +185,18 @@ index 195cd3b..de60e9e 100644
doc,
max_decimals={
diff --git a/src/pykml/test/test_parser.py b/src/pykml/test/test_parser.py
-index a36fae4..e0d5989 100644
+index a36fae4..7c081ba 100644
--- a/src/pykml/test/test_parser.py
+++ b/src/pykml/test/test_parser.py
-@@ -98,29 +98,29 @@ class ParseKmlOgcTestCase(unittest.TestCase):
+@@ -24,6 +24,7 @@ class ValidatorTestCase(unittest.TestCase):
+ schema = Schema("ogckml22.xsd")
+ self.assertTrue(isinstance(schema.schema, etree.XMLSchema))
+
++ @unittest.skip("access to remote resources")
+ def test_initialize_schema_remote_url(self):
+ schema = Schema("http://code.google.com/apis/kml/schema/kml22gx.xsd")
+ self.assertTrue(isinstance(schema.schema, etree.XMLSchema))
+@@ -98,29 +99,29 @@ class ParseKmlOgcTestCase(unittest.TestCase):
'google_kml_tutorial/using_the_cdata_element.kml'
)
# parse with validation
@@ -241,7 +249,15 @@ index a36fae4..e0d5989 100644
# parse without validation
with open(test_datafile) as f:
doc2 = parse(f)
-@@ -194,11 +194,11 @@ class ParseKmlGxTestCase(unittest.TestCase):
+@@ -166,6 +167,7 @@ class ParseKmlOgcTestCase(unittest.TestCase):
+ class ParseKmlGxTestCase(unittest.TestCase):
+ "A collection of tests related to parsing KML Google Extension documents"
+
++ @unittest.skip("access to remote resources")
+ def test_parse_kml_url(self):
+ "Tests the parsing of a KML URL"
+ url = 'http://code.google.com/apis/kml/documentation/kmlfiles/altitudemode_reference.kml'
+@@ -194,13 +196,14 @@ class ParseKmlGxTestCase(unittest.TestCase):
with open(test_datafile) as f:
doc = parse(f)
# parse with validation (local schema file)
@@ -256,7 +272,10 @@ index a36fae4..e0d5989 100644
+ # doc = parse(f, schema=Schema('http://code.google.com/apis/kml/schema/kml22gx.xsd'))
self.assertTrue(True)
++ @unittest.skip("access to remote resources")
def test_parse_kml_url_2(self):
+ "Tests the parsing of a KML URL"
+ url = 'http://code.google.com/apis/kml/documentation/kmlfiles/animatedupdate_example.kml'
diff --git a/src/pykml/test/test_util.py b/src/pykml/test/test_util.py
index a1cafa8..f002e45 100644
--- a/src/pykml/test/test_util.py
View it on GitLab: https://salsa.debian.org/debian-gis-team/pykml/-/commit/166efdaf94f53d1d74444a000f841121418b3baa
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pykml/-/commit/166efdaf94f53d1d74444a000f841121418b3baa
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/20220612/ef27f185/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list