@@ -281,7 +281,7 @@ def test_delete_repo_robot_permissions_raises_other_status_codes(
281281
282282@responses .activate
283283def test_get_robot_account_details_success (quay_api : QuayApi ) -> None :
284- robot_data = {"name" : " test-robot" , "description" : "Test robot account" }
284+ robot_data = {"name" : f" { ORG } + test-robot" , "description" : "Test robot account" }
285285 permissions_data = {
286286 "permissions" : [
287287 {"role" : "team" , "team" : {"name" : "test-team" }},
@@ -308,10 +308,10 @@ def test_get_robot_account_details_success(quay_api: QuayApi) -> None:
308308 status = 200 ,
309309 )
310310
311- result = quay_api .get_robot_account_details (" test-robot" )
311+ result = quay_api .get_robot_account_details (f" { ORG } + test-robot" )
312312
313313 assert result is not None
314- assert result ["name" ] == " test-robot"
314+ assert result ["name" ] == f" { ORG } + test-robot"
315315 assert result ["description" ] == "Test robot account"
316316 assert len (result ["teams" ]) == 1
317317 assert result ["teams" ][0 ]["name" ] == "test-team"
@@ -328,15 +328,15 @@ def test_get_robot_account_details_not_found(quay_api: QuayApi) -> None:
328328 status = 404 ,
329329 )
330330
331- result = quay_api .get_robot_account_details (" test-robot" )
331+ result = quay_api .get_robot_account_details (f" { ORG } + test-robot" )
332332 assert result is None
333333
334334
335335@responses .activate
336336def test_list_robot_accounts_detailed (quay_api : QuayApi ) -> None :
337- robots_data = {"robots" : [{"name" : " robot1" }, {"name" : " robot2" }]}
338- robot1_details = {"name" : " robot1" , "description" : "Robot 1" }
339- robot2_details = {"name" : " robot2" , "description" : "Robot 2" }
337+ robots_data = {"robots" : [{"name" : f" { ORG } + robot1" }, {"name" : f" { ORG } + robot2" }]}
338+ robot1_details = {"name" : f" { ORG } + robot1" , "description" : "Robot 1" }
339+ robot2_details = {"name" : f" { ORG } + robot2" , "description" : "Robot 2" }
340340 permissions_data : dict [str , list [dict [str , str ]]] = {"permissions" : []}
341341
342342 responses .add (
@@ -385,5 +385,5 @@ def test_list_robot_accounts_detailed(quay_api: QuayApi) -> None:
385385 result = quay_api .list_robot_accounts_detailed ()
386386
387387 assert len (result ) == 2
388- assert result [0 ]["name" ] == " robot1"
389- assert result [1 ]["name" ] == " robot2"
388+ assert result [0 ]["name" ] == f" { ORG } + robot1"
389+ assert result [1 ]["name" ] == f" { ORG } + robot2"
0 commit comments