aboutsummaryrefslogtreecommitdiff
path: root/src/suites/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/suites/path.py')
-rw-r--r--src/suites/path.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/suites/path.py b/src/suites/path.py
index d5dabb6..13866de 100644
--- a/src/suites/path.py
+++ b/src/suites/path.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/09 15:12:58 by charles #+# #+# #
-# Updated: 2020/10/07 15:16:49 by cacharle ### ########.fr #
+# Updated: 2020/10/08 08:41:38 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -17,6 +17,7 @@ from suite import suite
@suite()
def suite_path(test):
+ """ searching a command in the path tests """
whoami_path = distutils.spawn.find_executable("which")
mode_fmt = ("mkdir path && cp " +
whoami_path +
@@ -78,6 +79,7 @@ def suite_path(test):
@suite()
def suite_path_variable(test):
+ """ $PATH environment variable tests """
test("echo $PATH", exports={"PATH": "doesnotexits"})
test("echo $PATH", exports={"PATH": "doesnotexits:asdfasdfas"})
test("echo $PATH", exports={"PATH": "a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z"})