From 93843c6fe0cd762fc25a65fa9dc26f2e1cc508d6 Mon Sep 17 00:00:00 2001 From: annsann Date: Mon, 13 May 2024 16:50:54 +0200 Subject: [PATCH] Node: Add test for module include --- node/code/tests/01-run.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node/code/tests/01-run.py b/node/code/tests/01-run.py index 64f71cdd..534f52d2 100755 --- a/node/code/tests/01-run.py +++ b/node/code/tests/01-run.py @@ -14,11 +14,15 @@ def testfunc(child: pexpect.spawn): child.expect("PASS") + # Test if the module is initialized correctly + child.expect("Example Module Init: 1") + + # Test if the module is started correctly child.expect("Starting shell loop") + # Test if shell commands work correctly child.sendline("send_event 0") child.expect("💣 Received TERMINATE event, exiting...") - if __name__ == "__main__": sys.exit(run(testfunc))