Skip to content

Commit

Permalink
indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvabanka committed Nov 14, 2024
1 parent 09f8bb8 commit 638a131
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/kml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_write_kml_file(self) -> None:

parsed_doc = kml.KML.parse(file_path)

assert parsed_doc.to_string() == doc.to_string(), "Written and original documents don't match"
assert parsed_doc.to_string() == doc.to_string()

file_path.unlink()

Expand Down Expand Up @@ -250,12 +250,12 @@ def test_write_kmz_file(self) -> None:
tree = doc.to_string()

with zipfile.ZipFile(file_path, 'r') as kmz:
assert 'doc.kml' in kmz.namelist(), "doc.kml not found in the KMZ file"

with kmz.open('doc.kml') as doc_kml:
kml_content = doc_kml.read().decode("utf-8")

assert kml_content == tree, "KML content does not match expected content"
assert 'doc.kml' in kmz.namelist(), "doc.kml not found in the KMZ file"
with kmz.open('doc.kml') as doc_kml:
kml_content = doc_kml.read().decode("utf-8")
assert kml_content == tree, "KML content does not match expected content"

file_path.unlink()

Expand Down

0 comments on commit 638a131

Please sign in to comment.