-
Notifications
You must be signed in to change notification settings - Fork 52
WIP: Add fixtures for core tests #1474
base: develop
Are you sure you want to change the base?
WIP: Add fixtures for core tests #1474
Conversation
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.
Thanks @cpt-majkel for the PR. I still had no time to test it but I have a small suggestion already - see my inline comment. BTW, I think we could easily add an automatic test on the core level (without the need to use Tango).
src/sardana/pool/poolbasegroup.py
Outdated
@@ -358,6 +358,8 @@ def stop(self): | |||
self.debug("Stopping %s %s", ctrl.name, | |||
[e.name for e in elements]) | |||
try: | |||
for el in elements: |
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.
I would move all the loop before of the try..except. Here we are just setting an internal flag, nothing can go wrong.
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.
Moved
@cpt-majkel, I reviewed the PR and it is looking very good. Especially the testing part with the fixtures. But I still have some questions about the testing part. Better let's organize some online meetings to discuss them. Meanwhile, in order to not block the integration of the fix and the Jan20 release, I will proceed to manually merge the very first three commits (1bca450, f573fcc and c47263e). |
Related to #1421
Sets
stop
flag on stop for each element in multiple elements movement. It results in correct (interrupted
) state of the moveables and does not allow to apply backlash.