Repository navigation
Enhance MockSuperConductingMagnetController to be configurable - #2189
Conversation
…ithub.com/DiamondLightSource/dodal into enhance_MockSuperConductingMagnetController
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2189 +/- ##
=======================================
Coverage 99.33% 99.33%
=======================================
Files 367 367
Lines 14379 14389 +10
=======================================
+ Hits 14284 14294 +10
Misses 95 95 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Required for DiamondLightSource/sm-bluesky#363 |
Relm-Arrowny
left a comment
There was a problem hiding this comment.
Look good, but feel a bit strange to have test code as long as the actually code living in the same file, maybe we can consider moving it to MockSuperConductingMagnetController.py. Other wise I just have one Nit.
Unfortunately this is the current design in ophyd-async. The reason it has to be this way is because it is a circular dependency. This is because the mock needs to know about the device you're mocking and the device needs to attach the mock to have the default mock behaviour. Maybe this design needs to have another tweak to make it a bit more elegant |
…ithub.com/DiamondLightSource/dodal into enhance_MockSuperConductingMagnetController
Fixes #2188
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}