Skip to content

Commit

Permalink
fix partial coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Nov 13, 2024
1 parent 2c17ee0 commit 38b9203
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/kml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@ def test_from_string_with_unbound_prefix_strict_no_validate(self) -> None:
assert len(k.features) == 1
assert isinstance(k.features[0], features.Placemark)

def test_from_string_no_namespace(self) -> None:
doc = io.StringIO(
"<kml><Placemark><ExtendedData></ExtendedData></Placemark></kml>",
)

k = kml.KML.parse(doc, ns="", strict=False)

assert len(k.features) == 0


class TestKmlFromString:
def test_document(self) -> None:
Expand Down

0 comments on commit 38b9203

Please sign in to comment.