Skip to content

Commit

Permalink
add basic parse class method to KML #284
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Jul 26, 2024
1 parent 6d04f79 commit 251fd83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/kml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def test_parse_kml_fileobject(self) -> None:
class TestLxml(Lxml, TestStdLibrary):
"""Test with lxml."""


class TestLxmlParseKML(Lxml, TestParseKML):
"""Test with Lxml."""

def test_from_string_with_unbound_prefix(self) -> None:
doc = io.StringIO(
'<kml xmlns="http://www.opengis.net/kml/2.2">'
Expand All @@ -144,7 +148,3 @@ def test_from_string_with_unbound_prefix(self) -> None:
k = kml.KML.parse(doc, ns="{http://www.opengis.net/kml/2.2}")
assert len(k.features) == 1
assert isinstance(k.features[0], features.Placemark)


class TestLxmlParseKML(Lxml, TestParseKML):
"""Test with Lxml."""

0 comments on commit 251fd83

Please sign in to comment.