mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-06-25 15:20:36 -04:00
Move Python IPC connection from tests to Veilid
This commit is contained in:
parent
672ad87d28
commit
0c19414934
5 changed files with 39 additions and 39 deletions
|
@ -8,7 +8,6 @@ from veilid.json_api import _JsonVeilidAPI
|
|||
|
||||
import veilid
|
||||
|
||||
from .api import VeilidTestConnectionError, api_connector
|
||||
|
||||
pytest_plugins = ("pytest_asyncio",)
|
||||
|
||||
|
@ -20,8 +19,8 @@ async def simple_update_callback(update: veilid.VeilidUpdate):
|
|||
@pytest_asyncio.fixture
|
||||
async def api_connection() -> AsyncGenerator[_JsonVeilidAPI, None]:
|
||||
try:
|
||||
api = await api_connector(simple_update_callback)
|
||||
except VeilidTestConnectionError:
|
||||
api = await veilid.api_connector(simple_update_callback)
|
||||
except veilid.VeilidConnectionError:
|
||||
pytest.skip("Unable to connect to veilid-server.")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue