@@ -17,6 +17,8 @@ function mock_non_existing_fn() {
1717function test_now_with_perl() {
1818 mock clock::shell_time mock_non_existing_fn
1919 mock perl echo " 1720705883457"
20+ mock dependencies::has_python mock_false
21+ mock dependencies::has_node mock_false
2022
2123 assert_same " 1720705883457" " $( clock::now) "
2224}
@@ -26,6 +28,8 @@ function test_now_on_linux_unknown() {
2628 mock clock::shell_time mock_non_existing_fn
2729 mock perl mock_non_existing_fn
2830 mock date echo " 1720705883457"
31+ mock dependencies::has_python mock_false
32+ mock dependencies::has_node mock_false
2933
3034 assert_same " 1720705883457" " $( clock::now) "
3135}
@@ -34,6 +38,8 @@ function test_now_on_linux_alpine() {
3438 mock_alpine_os
3539 mock clock::shell_time mock_non_existing_fn
3640 mock perl echo " 1720705883457"
41+ mock dependencies::has_python mock_false
42+ mock dependencies::has_node mock_false
3743
3844 assert_same " 1720705883457" " $( clock::now) "
3945}
@@ -44,6 +50,8 @@ function test_now_on_windows_without_with_powershell() {
4450 mock dependencies::has_powershell mock_true
4551 mock powershell echo " 1727768183281580800"
4652 mock clock::shell_time mock_non_existing_fn
53+ mock dependencies::has_python mock_false
54+ mock dependencies::has_node mock_false
4755
4856 assert_same " 1727768183281580800" " $( clock::now) "
4957}
@@ -54,6 +62,8 @@ function test_now_on_windows_without_without_powershell() {
5462 mock dependencies::has_powershell mock_false
5563 mock date echo " 1727768951"
5664 mock clock::shell_time mock_non_existing_fn
65+ mock dependencies::has_python mock_false
66+ mock dependencies::has_node mock_false
5767
5868 assert_same " 1727768951" " $( clock::now) "
5969}
@@ -67,12 +77,16 @@ function test_now_on_osx_without_perl() {
6777 mock_macos
6878 mock dependencies::has_perl mock_false
6979 mock clock::shell_time echo " 1727708708.326957"
80+ mock dependencies::has_python mock_false
81+ mock dependencies::has_node mock_false
7082
7183 assert_same " 1727708708326957000" " $( clock::now) "
7284}
7385
7486function test_runtime_in_milliseconds_when_not_empty_time() {
7587 mock perl echo " 1720705883457"
88+ mock dependencies::has_python mock_false
89+ mock dependencies::has_node mock_false
7690
7791 assert_not_empty " $( clock::total_runtime_in_milliseconds) "
7892}
@@ -81,6 +95,8 @@ function test_runtime_in_milliseconds_when_empty_time() {
8195 mock_macos
8296 mock perl mock_non_existing_fn
8397 mock clock::shell_time mock_non_existing_fn
98+ mock dependencies::has_python mock_false
99+ mock dependencies::has_node mock_false
84100
85101 assert_empty " $( clock::total_runtime_in_milliseconds) "
86102}
0 commit comments