Skip to content
Snippets Groups Projects
Commit d9adcf15 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix: connection test requires `_get_state` to be mocked

parent 933531b7
No related branches found
No related tags found
1 merge request!23Feature: improve examples
......@@ -18,6 +18,7 @@ async def mocked_connection(session_mocker):
async with ChannelFor([service]) as channel:
session_mocker.patch("vapython.vanet._va_interface.Channel.__new__", return_value=channel)
va = vapy.VA()
session_mocker.patch.object(va, "_get_state", autospec=True)
va.connect(add_event_handling=False)
yield va, service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment