@@ -1157,6 +1157,7 @@ def setUp(self):
1157
1157
self .user = DigidUserFactory ()
1158
1158
1159
1159
self .config = QmaticConfig .get_solo ()
1160
+ self .config .booking_base_url = "https://qmatic.local/"
1160
1161
self .api_root = "https://qmatic.local/api/"
1161
1162
self .service = ServiceFactory .create (
1162
1163
api_root = self .api_root , api_type = APITypes .orc
@@ -1248,6 +1249,10 @@ def test_render_list_if_appointments_are_found(self, m):
1248
1249
self .assertEqual (PQ (passport_appointment [3 ]).text (), "Locatie\n Hoofdkantoor" )
1249
1250
self .assertEqual (PQ (passport_appointment [4 ]).text (), "Amsterdam" )
1250
1251
self .assertEqual (PQ (passport_appointment [5 ]).text (), "Dam 1" )
1252
+ self .assertEqual (
1253
+ PQ (cards [0 ]).find ("a" ).attr ("href" ),
1254
+ f"{ self .config .booking_base_url } { self .appointment_passport .publicId } " ,
1255
+ )
1251
1256
1252
1257
id_card_appointment = PQ (cards [1 ]).find ("ul" ).children ()
1253
1258
@@ -1259,3 +1264,7 @@ def test_render_list_if_appointments_are_found(self, m):
1259
1264
self .assertEqual (PQ (id_card_appointment [3 ]).text (), "Locatie\n Hoofdkantoor" )
1260
1265
self .assertEqual (PQ (id_card_appointment [4 ]).text (), "New York" )
1261
1266
self .assertEqual (PQ (id_card_appointment [5 ]).text (), "Wall Street 1" )
1267
+ self .assertEqual (
1268
+ PQ (cards [1 ]).find ("a" ).attr ("href" ),
1269
+ f"{ self .config .booking_base_url } { self .appointment_idcard .publicId } " ,
1270
+ )
0 commit comments