Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
13a17153
Commit
13a17153
authored
Aug 25, 2020
by
oroulet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in cmd test
parent
a47c1d0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
asyncua/tools.py
asyncua/tools.py
+3
-3
tests/test_tools.py
tests/test_tools.py
+2
-0
No files found.
asyncua/tools.py
View file @
13a17153
...
...
@@ -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
())
...
...
tests/test_tools.py
View file @
13a17153
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment