From: Alfredo Deza Date: Wed, 13 Feb 2019 18:50:33 +0000 (-0500) Subject: tests: add more example funcs for remote exec verification X-Git-Tag: 1.0.0~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7859e87695401c9daab7bfcae6120f2296c74021;p=remoto.git tests: add more example funcs for remote exec verification Signed-off-by: Alfredo Deza --- diff --git a/remoto/tests/fake_module.py b/remoto/tests/fake_module.py index 0252def..b4194fe 100644 --- a/remoto/tests/fake_module.py +++ b/remoto/tests/fake_module.py @@ -2,6 +2,24 @@ this is just a stub module to use to test the `import_module` functionality in remoto """ +import sys + def function(conn): return True + + +def fails(): + raise Exception('failure from fails() function') + + +def unexpected_fail(): + sys.exit(1) + + +def noop(): + sys.exit(0) + + +def passes(): + pass