Skip to content

Commit f43c4d0

Browse files
committed
Minor correction
1 parent 698ec23 commit f43c4d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/tyr/tests/integration/instance_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def test_on_attributs_starting_with_bike(create_instance):
787787
assert resp[0]['bike_use_ferry'] == 0.5
788788
assert resp[0]['bike_avoid_bad_surfaces'] == 0.25
789789
assert resp[0]['bike_shortest'] is False
790-
assert resp[0]['bicycle_type'] == "Hybrid"
790+
assert resp[0]['bicycle_type'] == "hybrid"
791791
assert resp[0]['bike_use_living_streets'] == 0.5
792792
assert resp[0]['bike_maneuver_penalty'] == 5
793793
assert resp[0]['bike_service_penalty'] == 0
@@ -802,7 +802,7 @@ def test_on_attributs_starting_with_bike(create_instance):
802802
'bike_use_ferry': 0.6,
803803
'bike_avoid_bad_surfaces': 0.75,
804804
'bike_shortest': True,
805-
'bicycle_type': "Road",
805+
'bicycle_type': "road",
806806
'bike_use_living_streets': 0.7,
807807
'bike_maneuver_penalty': 6,
808808
'bike_service_penalty': 1,
@@ -820,7 +820,7 @@ def test_on_attributs_starting_with_bike(create_instance):
820820
assert resp[0]['bike_use_ferry'] == 0.6
821821
assert resp[0]['bike_avoid_bad_surfaces'] == 0.75
822822
assert resp[0]['bike_shortest'] is True
823-
assert resp[0]['bicycle_type'] == "Road"
823+
assert resp[0]['bicycle_type'] == "road"
824824
assert resp[0]['bike_use_living_streets'] == 0.7
825825
assert resp[0]['bike_maneuver_penalty'] == 6
826826
assert resp[0]['bike_service_penalty'] == 1

source/tyr/tyr/resources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ def put(self, version=0, id=None, name=None):
11751175

11761176
parser.add_argument(
11771177
'bicycle_type',
1178-
type=OptionValue(['Road', 'Hybrid', 'City', 'Cross', 'Mountain']),
1178+
type=OptionValue(['road', 'hybrid', 'cross', 'mountain']),
11791179
help='The type of bicycle',
11801180
location=('json', 'values'),
11811181
default=instance.bicycle_type,

0 commit comments

Comments
 (0)