Skip to content

Commit

Permalink
Node: Add test for module include
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnsAnns committed May 13, 2024
1 parent 97d2819 commit 93843c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/code/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 93843c6

Please sign in to comment.