Commit 13a17153 authored by oroulet's avatar oroulet

fix typo in cmd test

parent a47c1d0f
......@@ -387,7 +387,7 @@ class SubHandler(object):
print("New event", event)
async def uasubscribe():
def uasubscribe():
run(_uasubscribe())
......@@ -480,7 +480,7 @@ def endpoint_to_strings(ep):
def uaclient():
run(_uaclient())
async def _uaclient():
parser = argparse.ArgumentParser(description="Connect to server and start python shell. root and objects nodes are available. Node specificed in command line is available as mynode variable")
add_common_args(parser)
......@@ -595,7 +595,7 @@ async def _uaserver():
except KeyboardInterrupt:
pass
sys.exit(0)
def uaserver():
run(_uaserver())
......
......@@ -7,6 +7,7 @@ import subprocess
from asyncua.tools import uaread, uals, uawrite, uasubscribe, uahistoryread, uaserver, uaclient, uadiscover, uacall, uageneratestructs
@pytest.mark.parametrize("tool", [uaread, uals, uawrite, uasubscribe, uahistoryread, uaclient, uadiscover, uacall, uageneratestructs])
def test_that_tool_can_be_invoked_without_internal_error(tool):
# It's necessary to mock argv, else the tool is invoked with *pytest's* argv
......@@ -16,6 +17,7 @@ def test_that_tool_can_be_invoked_without_internal_error(tool):
except SystemExit:
pass
def test_that_server_can_be_invoked_without_internal_error():
proc = subprocess.Popen(['uaserver'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment