@@ -115,19 +115,19 @@ def journey_with_deeplink_in_odt_information_test():
115
115
assert len (journey .sections ) == 3
116
116
odt_section = journey .sections [1 ]
117
117
assert odt_section .type == response_pb2 .ON_DEMAND_TRANSPORT
118
- odt_information = odt_section .odt_informations
118
+ odt_information = odt_section .odt_information
119
119
assert odt_information .name == "odt_name_value"
120
120
assert (
121
121
odt_information .deeplink
122
122
== "https://domaine/search?departure-address={from_name}&destination-address={to_name}&requested-departure-time={departure_datetime}&from_coord_lat={from_coord_lat}&from_coord_lon={from_coord_lon}&to_coord_lat={to_coord_lat}&to_coord_lon={to_coord_lon}"
123
123
)
124
124
assert odt_information .url == "odt_url_value"
125
- assert odt_information .conditions == "odt_conditions_value"
125
+ assert odt_information .condition == "odt_conditions_value"
126
126
assert odt_information .phone == "odt_phone_value"
127
127
update_odt_information_deeplink_in_section (odt_section )
128
128
assert (
129
129
odt_information .deeplink
130
- == "https://domaine/search?departure-address=stop_a_name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0&to_coord_lat=4.0&to_coord_lon=3.0"
130
+ == "https://domaine/search?departure-address=stop%20a%20name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0&to_coord_lat=4.0&to_coord_lon=3.0"
131
131
)
132
132
133
133
# Use a deeplink with fewer placeholders
@@ -139,8 +139,8 @@ def journey_with_deeplink_in_odt_information_test():
139
139
odt_section = response_journey_with_odt .journeys [0 ].sections [1 ]
140
140
update_odt_information_deeplink_in_section (odt_section )
141
141
assert (
142
- odt_section .odt_informations .deeplink
143
- == "https://domaine/search?departure-address=stop_a_name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0"
142
+ odt_section .odt_information .deeplink
143
+ == "https://domaine/search?departure-address=stop%20a%20name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0"
144
144
)
145
145
146
146
# Add a placeholder which is not predefined in the function to update deeplink
@@ -154,6 +154,6 @@ def journey_with_deeplink_in_odt_information_test():
154
154
odt_section = response_journey_with_odt .journeys [0 ].sections [1 ]
155
155
update_odt_information_deeplink_in_section (odt_section )
156
156
assert (
157
- odt_section .odt_informations .deeplink
158
- == "https://domaine/search?departure-address=stop_a_name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0&toto=N/A"
157
+ odt_section .odt_information .deeplink
158
+ == "https://domaine/search?departure-address=stop%20a%20name &destination-address=stop_b_name&requested-departure-time=1722924300&from_coord_lat=2.0&from_coord_lon=1.0&toto=N/A"
159
159
)
0 commit comments