@@ -88,10 +88,12 @@ def test_create_dashboard_options(self, mock_dict):
88
88
89
89
@mock .patch ('user_sync.config.DictConfig.get_string' )
90
90
@mock .patch ('user_sync.config.DictConfig.get_dict_config' )
91
+ @mock .patch ('user_sync.config.DictConfig.get_list_config' )
91
92
@mock .patch ('user_sync.identity_type.parse_identity_type' )
92
- def test_get_rule_options (self , mock_id_type ,mock_get_dict ,mock_get_string ):
93
+ def test_get_rule_options (self , mock_id_type ,mock_get_dict ,mock_get_list , mock_get_string ):
93
94
mock_id_type .return_value = 'new_acc'
94
95
mock_get_dict .return_value = tests .helper .MockGetString ()
96
+ mock_get_list .return_value = tests .helper .MockGetString ()
95
97
self .assertEquals (self .conf_load .get_rule_options (), {'username_filter_regex' : None ,
96
98
'update_user_info' : True ,
97
99
'manage_groups' : True ,
@@ -102,7 +104,10 @@ def test_get_rule_options(self, mock_id_type,mock_get_dict,mock_get_string):
102
104
'default_country_code' : 'test' ,
103
105
'remove_user_key_list' : None ,
104
106
'remove_list_output_path' : None ,
105
- 'remove_nonexistent_users' : False },
107
+ 'remove_nonexistent_users' : False ,
108
+ 'after_mapping_hook' : None ,
109
+ 'extended_attributes' : None ,
110
+ },
106
111
'rule options are returned' )
107
112
108
113
def test_parse_string (self ):
0 commit comments