@@ -126,8 +126,11 @@ def test_load_config_with_slash_in_name(self):
126126 def test_list_configs_when_multiple_subfolders_and_symlink (self ):
127127 def create_config_file (name , relative_path , group = None ):
128128 filename = os .path .basename (relative_path )
129+ config = {'name' : name }
130+ if group is not None :
131+ config ['group' ] = group
129132 test_utils .write_script_config (
130- { 'name' : name , 'group' : group } ,
133+ config ,
131134 filename ,
132135 config_folder = os .path .join (test_utils .temp_folder , 'runners' , os .path .dirname (relative_path )))
133136
@@ -139,6 +142,7 @@ def create_config_file(name, relative_path, group=None):
139142 create_config_file ('conf A' , 'conf_a.json' )
140143 create_config_file ('conf B' , os .path .join ('b' , 'conf_b.json' ))
141144 create_config_file ('conf C' , os .path .join ('c' , 'conf_c.json' ), group = 'test group' )
145+ create_config_file ('conf D' , os .path .join ('d' , 'conf_d.json' ), group = '' )
142146
143147 configs = self .config_service .list_configs (self .user )
144148 actual_name_group_map = {c .name : c .group for c in configs }
@@ -150,7 +154,8 @@ def create_config_file(name, relative_path, group=None):
150154 'conf Z' : 'sub' ,
151155 'conf A' : None ,
152156 'conf B' : 'b' ,
153- 'conf C' : 'test group' },
157+ 'conf C' : 'test group' ,
158+ 'conf D' : None },
154159 )
155160
156161 def tearDown (self ):
0 commit comments