Skip to content

Commit eb122c0

Browse files
committed
Fix windows tests
1 parent afe9899 commit eb122c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/eca/config_test.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268

269269
(testing "replaces file pattern with file content - absolute path"
270270
(with-redefs [fs/absolute? (fn [path] (= path "/absolute/file.txt"))
271+
fs/expand-home identity
271272
slurp (fn [path]
272273
(if (= (str path) "/absolute/file.txt")
273274
"test file content"
@@ -277,6 +278,7 @@
277278
(testing "replaces file pattern with file content - relative path"
278279
(with-redefs [fs/absolute? (fn [_] false)
279280
fs/path (fn [cwd file-path] (str cwd "/" file-path))
281+
fs/expand-home identity
280282
slurp (fn [path]
281283
(if (= path "/tmp/test.txt")
282284
"relative file content"
@@ -303,6 +305,7 @@
303305

304306
(testing "handles multiple file patterns"
305307
(with-redefs [fs/absolute? (fn [_] true)
308+
fs/expand-home identity
306309
slurp (fn [path]
307310
(case (str path)
308311
"/file1.txt" "content1"
@@ -314,6 +317,7 @@
314317
(testing "handles mixed env and file patterns"
315318
(with-redefs [config/get-env (fn [env-var]
316319
(when (= env-var "TEST_VAR") "env-value"))
320+
fs/expand-home identity
317321
fs/absolute? (fn [_] true)
318322
slurp (fn [path]
319323
(if (= (str path) "/file.txt")
@@ -407,6 +411,7 @@
407411
(testing "handles mixed env, file, classpath, and netrc patterns"
408412
(with-redefs [config/get-env (fn [env-var]
409413
(when (= env-var "TEST_VAR") "env-value"))
414+
fs/expand-home identity
410415
fs/absolute? (fn [_] true)
411416
slurp (fn [path]
412417
(cond

0 commit comments

Comments
 (0)