Repository navigation
Add reset_signal_on_update_mock_factory util - #2262
Merged
Merged
Conversation
oliwenmandiamond
requested review from
DG-At-Diamond,
DominicOram,
EmsArnold and
Relm-Arrowny
November 9, 2026 11:43
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2262 +/- ##
=======================================
Coverage 99.30% 99.30%
=======================================
Files 377 378 +1
Lines 14857 14865 +8
=======================================
+ Hits 14754 14762 +8
Misses 103 103 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
oliwenmandiamond
marked this pull request as ready for review
November 9, 2026 15:44
DominicOram
approved these changes
Nov 9, 2026
DominicOram
left a comment
Contributor
There was a problem hiding this comment.
Looks useful, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
reset_signal_on_update_mock_factoryutil. Allows user to easily add mock behaviour to a device to reset signals back to a state when their state has changed. A very common example is that when a device has a PV which need to be updated, the IOC will do something and then reset it back to a state. However, we have to add that reset state ourselves for tests and mock behaviour so the device doesn't get stuck waiting for it to change . This adds a helper util factory method to this.Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}