Skip to content

Commit

Permalink
don't rely or repr in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 15, 2023
1 parent c7ea1ed commit c71625e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,9 @@ def test_track_from_str(self) -> None:
),
],
)

track = Track.class_from_string(doc, ns="")

assert repr(track) == repr(expected_track)
assert track.to_string() == expected_track.to_string()
assert track.geometry == geo.LineString(
(
(-122.207881, 37.371915, 156.0),
Expand All @@ -316,6 +315,7 @@ def test_track_from_str(self) -> None:
(-122.203207, 37.374857, 140.199997),
)
)
assert track.to_string() == expected_track.to_string()


class TestMultiTrack(StdLibrary):
Expand Down

0 comments on commit c71625e

Please sign in to comment.