DiamondLightSource / DiamondLightSource/blueapi
Update opentelemetry - causing tests failure when BlueAPI used as package
Open
bug
- Dominant language
- Python
- Stars
- 13
- Forks
- 13
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 25
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.