Skip to content

Commit ad854f9

Browse files
committed
#9 Work in progress:
- Fix KML writer - Update tests reference file [ci skip]
1 parent 205d2b2 commit ad854f9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ezgpx/gpx_elements/gpx.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1061,4 +1061,5 @@ def to_csv(
10611061
if values is None:
10621062
values = ["lat", "lon"]
10631063

1064-
return self.to_dataframe(values).to_csv(path, sep=sep, header=header, index=index)
1064+
# Argument columns is required for KML writer (keep values order)
1065+
return self.to_dataframe(values).to_csv(path, sep=sep, columns=values, header=header, index=index)

tests/test_GPX.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_folium_plot(self):
349349

350350
#==== Destroy ============================================================#
351351

352-
def test_destroy(self, remove_tmp: bool = False):
352+
def test_destroy(self, remove_tmp: bool = True):
353353
# Remove temporary folder
354354
if remove_tmp:
355355
rmtree("tmp", True)

0 commit comments

Comments
 (0)