Skip to content

Commit

Permalink
test: Verify loading from shelf files raises an AttributeError
Browse files Browse the repository at this point in the history
This confirms @harriv's finding in #1313.
  • Loading branch information
AiyionPrime authored and oroulet committed Feb 16, 2024
1 parent 8cf8682 commit f41b67e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ def test_sync_server_get_node(server, idx):
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:

def __init__(self):
Expand Down

0 comments on commit f41b67e

Please sign in to comment.