@@ -197,9 +197,8 @@ class CondaCacheTest extends Specification {
197197
198198 when :
199199 // the prefix directory exists ==> no conda command is executed
200- def result = cache. createLocalCondaEnv(ENV )
200+ def result = cache. createLocalCondaEnv(ENV , PREFIX )
201201 then :
202- 1 * cache. condaPrefixPath(ENV ) >> PREFIX
203202 0 * cache. isYamlFilePath(ENV )
204203 0 * cache. runCommand(_)
205204 result == PREFIX
@@ -224,9 +223,8 @@ class CondaCacheTest extends Specification {
224223
225224 when :
226225 // the prefix directory exists ==> no mamba command is executed
227- def result = cache. createLocalCondaEnv(ENV )
226+ def result = cache. createLocalCondaEnv(ENV , PREFIX )
228227 then :
229- 1 * cache. condaPrefixPath(ENV ) >> PREFIX
230228 0 * cache. isYamlFilePath(ENV )
231229 0 * cache. runCommand(_)
232230 result == PREFIX
@@ -251,9 +249,8 @@ class CondaCacheTest extends Specification {
251249
252250 when :
253251 // the prefix directory exists ==> no mamba command is executed
254- def result = cache. createLocalCondaEnv(ENV )
252+ def result = cache. createLocalCondaEnv(ENV , PREFIX )
255253 then :
256- 1 * cache. condaPrefixPath(ENV ) >> PREFIX
257254 0 * cache. isYamlFilePath(ENV )
258255 0 * cache. runCommand(_)
259256 result == PREFIX
@@ -278,9 +275,8 @@ class CondaCacheTest extends Specification {
278275
279276 when :
280277 // the prefix directory exists ==> no mamba command is executed
281- def result = cache. createLocalCondaEnv(ENV )
278+ def result = cache. createLocalCondaEnv(ENV , PREFIX )
282279 then :
283- 1 * cache. condaPrefixPath(ENV ) >> PREFIX
284280 0 * cache. isYamlFilePath(ENV )
285281 0 * cache. runCommand(_)
286282 result == PREFIX
@@ -304,9 +300,8 @@ class CondaCacheTest extends Specification {
304300
305301 when :
306302 // the prefix directory exists ==> no mamba command is executed
307- def result = cache. createLocalCondaEnv(ENV )
303+ def result = cache. createLocalCondaEnv(ENV , PREFIX )
308304 then :
309- 1 * cache. condaPrefixPath(ENV ) >> PREFIX
310305 0 * cache. isYamlFilePath(ENV )
311306 0 * cache. runCommand(_)
312307 result == PREFIX
0 commit comments