@@ -267,7 +267,6 @@ async def test_endpoints_admin(client, database_setup):
267267
268268 # update the registration
269269 await client .patch (f"/elections/registration/{ election_name } /vice-president/pkn4" , json = {
270- "position" : "president" ,
271270 "speech" : "Vote for me as treasurer"
272271 })
273272 assert response .status_code == 200
@@ -284,19 +283,19 @@ async def test_endpoints_admin(client, database_setup):
284283 assert response .status_code == 200
285284
286285 # delete a registration
287- response = await client .delete (f"/elections/registration/{ election_name } /president" )
286+ response = await client .delete (f"/elections/registration/{ election_name } /president/jdo12 " )
288287 assert response .status_code == 200
289288
290289 # get nominee info
291- response = await client .get ("/elections/nominee/info " )
290+ response = await client .get (f "/elections/nominee/{ load_test_db . SYSADMIN_COMPUTING_ID } " )
292291 assert response .status_code == 200
293292
294293 # update nominee info
295- response = await client .put ( "/elections/nominee/info " , json = {
294+ response = await client .patch ( f "/elections/nominee/{ load_test_db . SYSADMIN_COMPUTING_ID } " , json = {
296295 "full_name" : "Puneet N" ,
297296 "linked_in" : "linkedin.com/not-my-linkedin" ,
298297 })
299298 assert response .status_code == 200
300299
301- response = await client .get ("/elections/nominee/info " )
300+ response = await client .get (f "/elections/nominee/{ load_test_db . SYSADMIN_COMPUTING_ID } " )
302301 assert response .status_code == 200
0 commit comments