Skip to content
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

Add shot block test cases #1828

Merged
merged 2 commits into from
Sep 1, 2024

Conversation

bosh
Copy link
Contributor

@bosh bosh commented Aug 25, 2024

I've been learning about shot blocking and I realized through testing that the MPF docs are incorrect (on https://github.com/missionpinball/mpf-docs/blob/main/docs/config/shot_profiles.md ) about the default behavior of Block.

In order to prove that the default behavior is as block: False instead of True, I've added test cases for the False and True options. (config_spec:1617 for shot_profiles:block shows the default to be false as well)

The tests for the false and default case have the same logic,
suggesting that mpf-docs:docs/config/shot_profiles.md is
out of date about default block behavior.
Copy link

sonarcloud bot commented Aug 25, 2024

@bosh
Copy link
Contributor Author

bosh commented Aug 25, 2024

It looks like the three failures in linting are preexisting on dev

Copy link
Collaborator

@avanwinkle avanwinkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests!

@avanwinkle avanwinkle merged commit 48b6e09 into missionpinball:dev Sep 1, 2024
14 of 15 checks passed
@bosh bosh deleted the add_shot_block_test_cases branch October 15, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants