Permalink
Browse files

Correct tox tests, minor typos

  • Loading branch information...
ghantoos committed Sep 13, 2017
1 parent ea4611c commit de6a9025e2ff10beb5f70520844e046b24054452
Showing with 11 additions and 2 deletions.
  1. +2 −2 lshell/shellcmd.py
  2. +1 −0 test/test_functional.py
  3. +1 −0 test/test_unit.py
  4. +7 −0 test/words
View
@@ -394,7 +394,7 @@ def onecmd(self, line):
""" This method overrides the original onecmd method, to put the cmd,
arg and line variables in class global variables: self.g_cmd,
self.g_arg and self.g_line.
Thos variables are then used by the __getattr__ method
Those variables are then used by the __getattr__ method
"""
cmd, arg, line = self.parseline(line)
self.g_cmd, self.g_arg, self.g_line = [cmd, arg, line]
@@ -453,7 +453,7 @@ def _timererror(self, signum, frame):
class LshellTimeOut(Exception):
""" Custum exception used for timer timeout
""" Custom exception used for timer timeout
"""
def __init__(self, value="Timed Out"):
View
@@ -445,5 +445,6 @@ def test_31_disable_exit(self):
self.assertIn(expected, result)
if __name__ == '__main__':
unittest.main()
View
@@ -226,5 +226,6 @@ def test_28_checksecure_quoted_command(self):
INPUT = "echo'/1.sh'"
return self.assertEqual(sec.check_secure(INPUT, self.userconf)[0], 1)
if __name__ == "__main__":
unittest.main()
View
@@ -58,3 +58,10 @@ sys
tuples
sigterm
init
ignace
mouzannar
alojzij
blatnik
custom
linux
thos

0 comments on commit de6a902

Please sign in to comment.