@@ -126,8 +126,11 @@ def test_load_config_with_slash_in_name(self):
126
126
def test_list_configs_when_multiple_subfolders_and_symlink (self ):
127
127
def create_config_file (name , relative_path , group = None ):
128
128
filename = os .path .basename (relative_path )
129
+ config = {'name' : name }
130
+ if group is not None :
131
+ config ['group' ] = group
129
132
test_utils .write_script_config (
130
- { 'name' : name , 'group' : group } ,
133
+ config ,
131
134
filename ,
132
135
config_folder = os .path .join (test_utils .temp_folder , 'runners' , os .path .dirname (relative_path )))
133
136
@@ -139,6 +142,7 @@ def create_config_file(name, relative_path, group=None):
139
142
create_config_file ('conf A' , 'conf_a.json' )
140
143
create_config_file ('conf B' , os .path .join ('b' , 'conf_b.json' ))
141
144
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 = '' )
142
146
143
147
configs = self .config_service .list_configs (self .user )
144
148
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):
150
154
'conf Z' : 'sub' ,
151
155
'conf A' : None ,
152
156
'conf B' : 'b' ,
153
- 'conf C' : 'test group' },
157
+ 'conf C' : 'test group' ,
158
+ 'conf D' : None },
154
159
)
155
160
156
161
def tearDown (self ):
0 commit comments