@@ -32,7 +32,7 @@ def setUpClass(cls, *args, **kwargs) -> None:
3232 cls .PROJECT_TYPE ,
3333 settings = [
3434 {"attribute" : "TemplateState" , "value" : 1 },
35- {"attribute" : "CategorizeItems" , "value" : 1 },
35+ {"attribute" : "CategorizeItems" , "value" : 2 },
3636 ],
3737 )
3838 team = sa .controller .team
@@ -138,15 +138,20 @@ def test_set_contributors_categories_by_id(self):
138138 test_categories = ["ID_Cat_A" , "ID_Cat_B" ]
139139 sa .create_categories (project = self .PROJECT_NAME , categories = test_categories )
140140
141+ scapegoat_project_id = sa .list_users (
142+ project = self .PROJECT_NAME ,
143+ email = self .scapegoat ["email" ],
144+ )[0 ]["id" ]
145+
141146 sa .set_contributors_categories (
142147 project = self .PROJECT_NAME ,
143- contributors = [self . scapegoat [ "id" ] ],
148+ contributors = [scapegoat_project_id ],
144149 categories = test_categories ,
145150 )
146151
147152 # Verify categories were assigned
148153 project_users = sa .list_users (
149- project = self .PROJECT_NAME , id = self . scapegoat [ "id" ] , include = ["categories" ]
154+ project = self .PROJECT_NAME , id = scapegoat_project_id , include = ["categories" ]
150155 )
151156 assigned_categories = [cat ["name" ] for cat in project_users [0 ]["categories" ]]
152157 for category in test_categories :
0 commit comments