@@ -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
@@ -1258,6 +1259,10 @@ def test_render_list_if_appointments_are_found(self, m):
1258
1259
self .assertEqual (PQ (passport_appointment [3 ]).text (), "Locatie\n Hoofdkantoor" )
1259
1260
self .assertEqual (PQ (passport_appointment [4 ]).text (), "Amsterdam" )
1260
1261
self .assertEqual (PQ (passport_appointment [5 ]).text (), "Dam 1" )
1262
+ self .assertEqual (
1263
+ PQ (cards [0 ]).find ("a" ).attr ("href" ),
1264
+ f"{ self .config .booking_base_url } { self .appointment_passport .publicId } " ,
1265
+ )
1261
1266
1262
1267
id_card_appointment = PQ (cards [1 ]).find ("ul" ).children ()
1263
1268
@@ -1269,3 +1274,7 @@ def test_render_list_if_appointments_are_found(self, m):
1269
1274
self .assertEqual (PQ (id_card_appointment [3 ]).text (), "Locatie\n Hoofdkantoor" )
1270
1275
self .assertEqual (PQ (id_card_appointment [4 ]).text (), "New York" )
1271
1276
self .assertEqual (PQ (id_card_appointment [5 ]).text (), "Wall Street 1" )
1277
+ self .assertEqual (
1278
+ PQ (cards [1 ]).find ("a" ).attr ("href" ),
1279
+ f"{ self .config .booking_base_url } { self .appointment_idcard .publicId } " ,
1280
+ )
0 commit comments