From 7859e87695401c9daab7bfcae6120f2296c74021 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 13 Feb 2019 13:50:33 -0500 Subject: [PATCH] tests: add more example funcs for remote exec verification Signed-off-by: Alfredo Deza --- remoto/tests/fake_module.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 2.47.3