Skip to content

Commit

Permalink
Invert path's direction in unit test case so that test coverage is co…
Browse files Browse the repository at this point in the history
…mplete (test when a marker is on a path's end)
  • Loading branch information
justinefricou committed Dec 11, 2024
1 parent 83570f9 commit 2f7697c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geotrek/core/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ def test_route_geometry_not_fail_no_via_point_several_paths(self):
V path2
^ path2
start │
Expand All @@ -1010,8 +1010,8 @@ def test_route_geometry_not_fail_no_via_point_several_paths(self):
path1 = PathFactory(geom=pathGeom1)

pathGeom2 = LineString([
[1.4447021, 43.5803909],
[1.4451303, 43.5270311],
[1.4447021, 43.5803909],
], srid=settings.API_SRID)
pathGeom2.transform(settings.SRID)
path2 = PathFactory(geom=pathGeom2)
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def test_route_geometry_not_fail_no_via_point_several_paths(self):
'serialized': [
{
'positions': {
'0': [1e-05, 1.0], '1': [1.0, 1e-05]
'0': [1e-05, 1.0], '1': [0, 0.99999]
},
'paths': [path1.pk, path2.pk]
}
Expand Down

0 comments on commit 2f7697c

Please sign in to comment.