@@ -181,12 +181,9 @@ class CondaCacheTest extends Specification {
181
181
182
182
cleanup :
183
183
folder?. deleteDir()
184
-
185
184
}
186
185
187
-
188
186
def ' should create a conda environment' () {
189
-
190
187
given :
191
188
def ENV = ' bwa=1.1.1'
192
189
def PREFIX = Files . createTempDirectory(' foo' )
@@ -208,11 +205,9 @@ class CondaCacheTest extends Specification {
208
205
0 * cache. makeAbsolute(_)
209
206
1 * cache. runCommand( " conda create --yes --quiet --prefix $PREFIX $ENV " ) >> null
210
207
result == PREFIX
211
-
212
208
}
213
209
214
210
def ' should create a conda environment - using mamba' () {
215
-
216
211
given :
217
212
def ENV = ' bwa=1.1.1'
218
213
def PREFIX = Files . createTempDirectory(' foo' )
@@ -234,11 +229,9 @@ class CondaCacheTest extends Specification {
234
229
0 * cache. makeAbsolute(_)
235
230
1 * cache. runCommand(" mamba create --yes --quiet --prefix $PREFIX $ENV " ) >> null
236
231
result == PREFIX
237
-
238
232
}
239
233
240
234
def ' should create a conda environment - using micromamba' () {
241
-
242
235
given :
243
236
def ENV = ' bwa=1.1.1'
244
237
def PREFIX = Files . createTempDirectory(' foo' )
@@ -260,11 +253,9 @@ class CondaCacheTest extends Specification {
260
253
0 * cache. makeAbsolute(_)
261
254
1 * cache. runCommand(" micromamba create --yes --quiet --prefix $PREFIX $ENV " ) >> null
262
255
result == PREFIX
263
-
264
256
}
265
257
266
258
def ' should create a conda environment using mamba and remote lock file' () {
267
-
268
259
given :
269
260
def ENV = ' http://foo.com/some/file-lock.yml'
270
261
def PREFIX = Files . createTempDirectory(' foo' )
@@ -284,12 +275,11 @@ class CondaCacheTest extends Specification {
284
275
then :
285
276
1 * cache. isYamlFilePath(ENV )
286
277
0 * cache. makeAbsolute(_)
287
- 1 * cache. runCommand(" mamba env create --prefix $PREFIX --file $ENV " ) >> null
278
+ 1 * cache. runCommand(" mamba env create --yes -- prefix $PREFIX --file $ENV " ) >> null
288
279
result == PREFIX
289
-
290
280
}
291
- def ' should create a conda environment using micromamba and remote lock file' () {
292
281
282
+ def ' should create a conda environment using micromamba and remote lock file' () {
293
283
given :
294
284
def ENV = ' http://foo.com/some/file-lock.yml'
295
285
def PREFIX = Files . createTempDirectory(' foo' )
@@ -311,7 +301,6 @@ class CondaCacheTest extends Specification {
311
301
0 * cache. makeAbsolute(_)
312
302
1 * cache. runCommand(" micromamba env create --yes --prefix $PREFIX --file $ENV " ) >> null
313
303
result == PREFIX
314
-
315
304
}
316
305
317
306
def ' should create conda env with options' () {
0 commit comments