From 2528fb5217063a5a98f7ea2b880bfc75e7f2428c Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 2 May 2018 11:22:10 -0400 Subject: Added support for customizing the pyscript bridge pystate object name. Removed all legacy pystate objects. Changed default behavior to clear _last_result before each command Added utility for creating named tuples with default values Added tests to exercise new changes. --- tests/pyscript/foo4.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/pyscript/foo4.py (limited to 'tests/pyscript') diff --git a/tests/pyscript/foo4.py b/tests/pyscript/foo4.py new file mode 100644 index 00000000..88fd3ce8 --- /dev/null +++ b/tests/pyscript/foo4.py @@ -0,0 +1,8 @@ +result = app.foo('aaa', 'bbb', counter=3) +out_text = 'Fail' +if result: + data = result.data + if 'aaa' in data.variable and 'bbb' in data.variable and data.counter == 3: + out_text = 'Success' + +print(out_text) -- cgit v1.2.1