more mocks related to context

This commit is contained in:
Tomas Kopecek 2024-07-10 16:05:53 +02:00
parent 117164ab3f
commit d7bbc037f5
11 changed files with 39 additions and 2 deletions

View file

@ -43,6 +43,8 @@ class CliTestCase(unittest.TestCase):
STDOUT = sys.stdout
STDERR = sys.stderr
def tearDown(self):
mock.patch.stopall()
#
# private methods
#
@ -129,7 +131,7 @@ class CliTestCase(unittest.TestCase):
# check callableObj callable
self.__assert_callable(callableObj)
# these arguments are reseverd and used in assert_system_exit
# these arguments are reserved and used in assert_system_exit
reserved = [
'activate_session', 'stdout', 'stderr',
'assert_func', 'exit_code'