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
f41b67e1
Commit
f41b67e1
authored
Feb 12, 2024
by
Jan-Niklas Burfeind
Committed by
oroulet
Feb 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Verify loading from shelf files raises an AttributeError
This confirms @harriv's finding in #1313.
parent
8cf8682a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests/test_sync.py
tests/test_sync.py
+9
-0
No files found.
tests/test_sync.py
View file @
f41b67e1
...
@@ -187,6 +187,15 @@ def test_sync_server_get_node(server, idx):
...
@@ -187,6 +187,15 @@ def test_sync_server_get_node(server, idx):
assert
vars
[
0
].
read_value
()
==
6.7
assert
vars
[
0
].
read_value
()
==
6.7
@
pytest
.
mark
.
xfail
(
raises
=
AttributeError
,
reason
=
"asyncua introduced a regression, likely when we switched to pathlib"
,
strict
=
True
)
async
def
test_sync_server_creating_shelf_files_works
(
tloop
:
ThreadLoop
,
tmp_path
:
Path
)
->
None
:
shelf_file_path
:
Path
=
tmp_path
/
"shelf_file"
Server
(
tloop
=
tloop
,
shelf_file
=
shelf_file_path
)
class
MySubHandler
:
class
MySubHandler
:
def
__init__
(
self
):
def
__init__
(
self
):
...
...
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