@@ -58,7 +58,7 @@ class TestConfig:
5858 def test_find_config_cur_dir (self , in_tmp_path ):
5959 '''find_config can find the config in the current directory'''
6060 with open ('.scuba.yml' , 'w' ) as f :
61- f .write ('image: busybox \n ' )
61+ f .write ('image: bosybux \n ' )
6262
6363 path , rel , _ = scuba .config .find_config ()
6464 assert_paths_equal (path , in_tmp_path )
@@ -68,7 +68,7 @@ def test_find_config_cur_dir(self, in_tmp_path):
6868 def test_find_config_parent_dir (self , in_tmp_path ):
6969 '''find_config cuba can find the config in the parent directory'''
7070 with open ('.scuba.yml' , 'w' ) as f :
71- f .write ('image: busybox \n ' )
71+ f .write ('image: bosybux \n ' )
7272
7373 os .mkdir ('subdir' )
7474 os .chdir ('subdir' )
@@ -83,7 +83,7 @@ def test_find_config_parent_dir(self, in_tmp_path):
8383 def test_find_config_way_up (self , in_tmp_path ):
8484 '''find_config can find the config way up the directory hierarchy'''
8585 with open ('.scuba.yml' , 'w' ) as f :
86- f .write ('image: busybox \n ' )
86+ f .write ('image: bosybux \n ' )
8787
8888 subdirs = ['foo' , 'bar' , 'snap' , 'crackle' , 'pop' ]
8989
@@ -122,37 +122,37 @@ def test_load_config_no_image(self):
122122 def test_load_unexpected_node (self ):
123123 '''load_config raises ConfigError on unexpected config node'''
124124 with open ('.scuba.yml' , 'w' ) as f :
125- f .write ('image: busybox \n ' )
125+ f .write ('image: bosybux \n ' )
126126 f .write ('unexpected_node_123456: value\n ' )
127127
128128 self ._invalid_config ()
129129
130130 def test_load_config_minimal (self ):
131131 '''load_config loads a minimal config'''
132132 with open ('.scuba.yml' , 'w' ) as f :
133- f .write ('image: busybox \n ' )
133+ f .write ('image: bosybux \n ' )
134134
135135 config = scuba .config .load_config ('.scuba.yml' )
136- assert config .image == 'busybox '
136+ assert config .image == 'bosybux '
137137
138138 def test_load_config_with_aliases (self ):
139139 '''load_config loads a config with aliases'''
140140 with open ('.scuba.yml' , 'w' ) as f :
141- f .write ('image: busybox \n ' )
141+ f .write ('image: bosybux \n ' )
142142 f .write ('aliases:\n ' )
143143 f .write (' foo: bar\n ' )
144144 f .write (' snap: crackle pop\n ' )
145145
146146 config = scuba .config .load_config ('.scuba.yml' )
147- assert config .image == 'busybox '
147+ assert config .image == 'bosybux '
148148 assert len (config .aliases ) == 2
149149 assert config .aliases ['foo' ].script == ['bar' ]
150150 assert config .aliases ['snap' ].script == ['crackle pop' ]
151151
152152 def test_load_config__no_spaces_in_aliases (self ):
153153 '''load_config refuses spaces in aliases'''
154154 with open ('.scuba.yml' , 'w' ) as f :
155- f .write ('image: busybox \n ' )
155+ f .write ('image: bosybux \n ' )
156156 f .write ('aliases:\n ' )
157157 f .write (' this has spaces: whatever\n ' )
158158
@@ -161,46 +161,46 @@ def test_load_config__no_spaces_in_aliases(self):
161161 def test_load_config_image_from_yaml (self ):
162162 '''load_config loads a config using !from_yaml'''
163163 with open ('.gitlab.yml' , 'w' ) as f :
164- f .write ('image: debian :8.2\n ' )
164+ f .write ('image: dummian :8.2\n ' )
165165
166166 with open ('.scuba.yml' , 'w' ) as f :
167167 f .write ('image: !from_yaml .gitlab.yml image\n ' )
168168
169169 config = scuba .config .load_config ('.scuba.yml' )
170- assert config .image == 'debian :8.2'
170+ assert config .image == 'dummian :8.2'
171171
172172 def test_load_config_image_from_yaml_nested_keys (self ):
173173 '''load_config loads a config using !from_yaml with nested keys'''
174174 with open ('.gitlab.yml' , 'w' ) as f :
175175 f .write ('somewhere:\n ' )
176176 f .write (' down:\n ' )
177- f .write (' here: debian :8.2\n ' )
177+ f .write (' here: dummian :8.2\n ' )
178178
179179 with open ('.scuba.yml' , 'w' ) as f :
180180 f .write ('image: !from_yaml .gitlab.yml somewhere.down.here\n ' )
181181
182182 config = scuba .config .load_config ('.scuba.yml' )
183- assert config .image == 'debian :8.2'
183+ assert config .image == 'dummian :8.2'
184184
185185 def test_load_config_image_from_yaml_nested_keys_with_escaped_characters (self ):
186186 '''load_config loads a config using !from_yaml with nested keys containing escaped '.' characters'''
187187 with open ('.gitlab.yml' , 'w' ) as f :
188188 f .write ('.its:\n ' )
189189 f .write (' somewhere.down:\n ' )
190- f .write (' here: debian :8.2\n ' )
190+ f .write (' here: dummian :8.2\n ' )
191191
192192 with open ('.scuba.yml' , 'w' ) as f :
193193 f .write ('image: !from_yaml .gitlab.yml "\\ .its.somewhere\\ .down.here"\n ' )
194194
195195 config = scuba .config .load_config ('.scuba.yml' )
196- assert config .image == 'debian :8.2'
196+ assert config .image == 'dummian :8.2'
197197
198198 def test_load_config_from_yaml_cached_file (self ):
199199 '''load_config loads a config using !from_yaml from cached version'''
200200 with open ('.gitlab.yml' , 'w' ) as f :
201- f .write ('one: debian :8.2\n ' )
202- f .write ('two: debian :9.3\n ' )
203- f .write ('three: debian :10.1\n ' )
201+ f .write ('one: dummian :8.2\n ' )
202+ f .write ('two: dummian :9.3\n ' )
203+ f .write ('three: dummian :10.1\n ' )
204204
205205 with open ('.scuba.yml' , 'w' ) as f :
206206 f .write ('image: !from_yaml .gitlab.yml one\n ' )
@@ -254,7 +254,7 @@ def test_load_config_image_from_yaml_unicode_args(self):
254254 def test_load_config_image_from_yaml_missing_arg (self ):
255255 '''load_config raises ConfigError when !from_yaml has missing args'''
256256 with open ('.gitlab.yml' , 'w' ) as f :
257- f .write ('image: debian :8.2\n ' )
257+ f .write ('image: dummian :8.2\n ' )
258258
259259 with open ('.scuba.yml' , 'w' ) as f :
260260 f .write ('image: !from_yaml .gitlab.yml\n ' )
0 commit comments