When I import
from blueapi.core.bluesky_types import DataEvent
or
from blueapi.worker.event import WorkerEvent
pytest fails to recognise any of the tests that uses the file that imports them. Literally just importing them causes the tests to disappear.
Looks like something in opentelemetry has been deprecated and from opentelemetry import context is enough to trigger it.
You can workaround it by adding "ignore::DeprecationWarning" to filterwarnings in the pytest section of your pyproject.toml, but this is obviously not ideal
@tpoliaw
When I import
from blueapi.core.bluesky_types import DataEvent
or
from blueapi.worker.event import WorkerEvent
pytest fails to recognise any of the tests that uses the file that imports them. Literally just importing them causes the tests to disappear.
Looks like something in opentelemetry has been deprecated and from opentelemetry import context is enough to trigger it.
You can workaround it by adding "ignore::DeprecationWarning" to filterwarnings in the pytest section of your pyproject.toml, but this is obviously not ideal
@tpoliaw