From 21e70ef9138af4e68c1991076add6563111152e8 Mon Sep 17 00:00:00 2001 From: taoufik07 Date: Mon, 5 Nov 2018 14:48:34 +0100 Subject: [PATCH] Fix tests --- tests/test_routes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_routes.py b/tests/test_routes.py index c480c6d..54c8e64 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -87,18 +87,18 @@ def test_does_match_with_route(route, match, expected): @pytest.mark.parametrize( "path_param, expected_weight", [ - pytest.param("/{greetings}", (True, -1), id="with one param"), + pytest.param("/{greetings}", (True, True, -1), id="with one param"), pytest.param( - "/{greetings}.{name}", (True, -2), id="with 2 params and dot in the middle" + "/{greetings}.{name}", (True, True, -2), id="with 2 params and dot in the middle" ), - pytest.param("/{greetings}/{name}", (True, -2), id="with 2 param and subpath"), + pytest.param("/{greetings}/{name}", (True, True, -2), id="with 2 param and subpath"), pytest.param( - "/{greetings}/{name}/{hello}", (True, -3), id="with 3 param and subpath" + "/{greetings}/{name}/{hello}", (True, True, -3), id="with 3 param and subpath" ), pytest.param( - "/{greetings}_{name}", (True, -2), id="with 2 param and underscore" + "/{greetings}_{name}", (True, True, -2), id="with 2 param and underscore" ), - pytest.param("/hello", (False, 0), id="with 2 param and underscore"), + pytest.param("/hello", (False, False, 0), id="with 2 param and underscore"), ], ) def test_weight(path_param, expected_weight):