Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest==8.4.2
pytest-asyncio==0.26.0
pytest-asyncio==1.3.0
pytest-cov==7.0.0
pytest-mock==3.14.1
pytest-timeout==2.4.0
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
"""Provide package level pytest fixtures."""

import asyncio

import pytest

from camacq.control import Center
from camacq.plugins.leica import sample as leica_sample_mod


@pytest.fixture(name="center")
def center_fixture(event_loop):
async def center_fixture():
"""Give access to center via fixture."""
_center = Center(loop=event_loop)
_center = Center(loop=asyncio.get_running_loop())
_center._track_tasks = True # pylint: disable=protected-access
yield _center

Expand Down