-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MX beamlines to use new device factory - Part 1 #735
Update MX beamlines to use new device factory - Part 1 #735
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #735 +/- ##
=======================================
Coverage 87.01% 87.01%
=======================================
Files 101 101
Lines 6968 6970 +2
=======================================
+ Hits 6063 6065 +2
Misses 905 905
|
Need to update beamline for |
b1b8a49
to
a16bb7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Feel free to merge once the dodal change is ready
|
||
|
||
@pytest.fixture(scope="function", autouse=True) | ||
def clear_device_factory_caches_after_every_test(i03_device_factories): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think something similar would be useful in dodal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like dodal follows a different pattern for unit test fixtures - rather than have global fixtures using device_instantiation
seems to mostly be one-off constructions of devices, thus far it doesn't seem to have been necessary.
Ignore that - I forgot that I did eventually add it in dodal as well
33b17f6
to
68bb897
Compare
68bb897
to
28f6ac7
Compare
This addresses
See also dodal PR
Additionally, this PR also adds unit test duration summary to the end of pytest, this was done because it seems that tests are taking longer, see related issue that is not addressed here
setup_context()
unexpected behaviour dodal#973