From 2f7697c271e3acad00380ff2f4754e02741aac34 Mon Sep 17 00:00:00 2001 From: Justine Fricou Date: Wed, 11 Dec 2024 16:35:28 +0100 Subject: [PATCH] Invert path's direction in unit test case so that test coverage is complete (test when a marker is on a path's end) --- geotrek/core/tests/test_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geotrek/core/tests/test_views.py b/geotrek/core/tests/test_views.py index a6525287fe..3a3d886041 100644 --- a/geotrek/core/tests/test_views.py +++ b/geotrek/core/tests/test_views.py @@ -994,7 +994,7 @@ def test_route_geometry_not_fail_no_via_point_several_paths(self): │ │ │ - V path2 + ^ path2 │ │ start │ @@ -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) @@ -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] }