@@ -1303,13 +1303,7 @@ def test_highriskemployee_get_all_command_when_given_risk_tags_only_gets_employe
13031303 client = create_client (code42_high_risk_employee_mock )
13041304 _ , _ , res = highriskemployee_get_all_command (
13051305 client ,
1306- {
1307- "risktags" : [
1308- "PERFORMANCE_CONCERNS" ,
1309- "SUSPICIOUS_SYSTEM_ACTIVITY" ,
1310- "POOR_SECURITY_PRACTICES" ,
1311- ]
1312- },
1306+ {"risktags" : "PERFORMANCE_CONCERNS SUSPICIOUS_SYSTEM_ACTIVITY POOR_SECURITY_PRACTICES" },
13131307 )
13141308 # Only first employee has the given risk tags
13151309 expected = [json .loads (MOCK_GET_ALL_HIGH_RISK_EMPLOYEES_RESPONSE )["items" ][0 ]]
@@ -1345,11 +1339,7 @@ def test_highriskemployee_get_all_command_when_no_employees(code42_high_risk_emp
13451339 _ , _ , res = highriskemployee_get_all_command (
13461340 client ,
13471341 {
1348- "risktags" : [
1349- "PERFORMANCE_CONCERNS" ,
1350- "SUSPICIOUS_SYSTEM_ACTIVITY" ,
1351- "POOR_SECURITY_PRACTICES" ,
1352- ]
1342+ "risktags" : "PERFORMANCE_CONCERNS SUSPICIOUS_SYSTEM_ACTIVITY POOR_SECURITY_PRACTICES"
13531343 },
13541344 )
13551345 # Only first employee has the given risk tags
@@ -1366,14 +1356,14 @@ def test_highriskemployee_add_risk_tags_command(code42_sdk_mock):
13661356 expected_user_id = "123412341234123412" # value found in GET_USER_RESPONSE
13671357 assert res == expected_user_id
13681358 code42_sdk_mock .detectionlists .add_user_risk_tags .assert_called_once_with (
1369- expected_user_id , "FLIGHT_RISK"
1359+ expected_user_id , [ "FLIGHT_RISK" ]
13701360 )
13711361
13721362
13731363def test_highriskemployee_remove_risk_tags_command (code42_sdk_mock ):
13741364 client = create_client (code42_sdk_mock )
13751365 _ , _ , res = highriskemployee_remove_risk_tags_command (
1376- client , {"username" : "user1@example.com" , "risktags" : [ "FLIGHT_RISK" , " CONTRACT_EMPLOYEE"] }
1366+ client , {"username" : "user1@example.com" , "risktags" : "FLIGHT_RISK CONTRACT_EMPLOYEE" }
13771367 )
13781368 expected_user_id = "123412341234123412" # value found in GET_USER_RESPONSE
13791369 assert res == expected_user_id
0 commit comments