-
Notifications
You must be signed in to change notification settings - Fork 143
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
Adds hurry up and grace period features to multiball ball save #1590
Conversation
Added hurry up and grace period features to the multiball ball save. This allows the user to run shows off the hurry up, as well as provide a grace period for saves.
Adds hurry up and grace period
This allows the user to run shows off the hurry up, as well as provide a grace period for saves. The tests for test_Modes are failing when I run bulk, but run fine when I run just them. So not sure what is going on there. If you also see this issue, please let me know what I changed or need to do to fix that issue. If this is approved and merged, I would also like to go add similar features for add_a_ball to provide a different and shorter ball save feature.
Tests fail because of this: ======== mpf/devices/multiball.py Line: 147
Line: 166
|
Jan, Thanks! I know see where those errors are located in Travis_CI, so I can fix them going forward. So everything passes now, but on my local it still fails the same 7 tests... Kinda weird. They all have the exact same stack trace. I've tried hunting, but can't seem to find it, and obviously is happening on my machine, but not in Travis. Thanks! ERROR: test_ball_end (mpf.tests.test_Modes.TestModes)Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Did you run the tests from inside the mpf folder? I think I fixed something similar recently. I think it needed some init.py (which should be optional in python 3 but that seems not to be always true). If CI is happy you at least did not make it worse ;-). |
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 overall. One small question regarding premature stop of the multiball (i.e. due to mode end).
Adds another test case to ensure that when grace period and hurry up are not set, that they are never called in an event.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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 very good to me. Thanks for making all those changes.
Added hurry up and grace period features to the multiball ball save. This allows the user to run shows off the hurry up, as well as provide a grace period for saves.
The tests for test_Modes are failing when I run bulk, but run fine when I run just them. So not sure what is going on there. If you also see this issue, please let me know what I changed or need to do to fix that issue.
If this is approved and merged, I would also like to go add similar features for add_a_ball to provide a different and shorter ball save feature.
Relates to 768 (set shoot_again to 0) and 1132. The wording is slightly inconsistent with ball_saves, but I didn't want to change it and break users configs. But might be worth doing (however that works) to ultimately have them be the same verbiage.