• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

missionpinball / mpf / 44833309868
81%

Build:
DEFAULT BRANCH: dev
Ran 20 Nov 2026 11:00PM UTC
Jobs 10
Files 282
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 10:59PM UTC coverage: 81.441% (+0.002%) from 81.439%
44833309868

push

github

web-flow
Fix random_event_player conditions not seeing the event's kwargs (#2128)

* Fix random_event_player conditions not seeing the event's kwargs

Randomizer.get_next(conditional_args) called next(self, conditional_args),
where the second argument is next()'s default, so the args never reached
__next__ and the conditions were evaluated without the triggering event's
kwargs. It now calls self.__next__(conditional_args).

The conditional test wasn't run and couldn't pass as written: it is run
now, checks the events it means, and its machine has the `foo` setting
event4's condition reads (as `settings.foo`; `machine.settings.foo`
failed to evaluate).

* Use a private _next instead of calling __next__ directly

Pylint's unnecessary-dunder-call: get_next and __next__ now share
_next(conditional_args), the iterator calling it without args.

* Address review: conditional test in run_all_tests, and _next's docstring

run_all_tests resets before each test and runs the conditional one too,
so the player scope covers it as well (mode2 gets a matching
test_player_conditional_random). The note on why get_next exists moves
to _next, as why both __next__ and get_next pick through it.

4 of 4 new or added lines in 1 file covered. (100.0%)

25995 of 31919 relevant lines covered (81.44%)

7.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.13-macos-latest - 44833309868.1 20 Nov 2026 11:02PM UTC 282
78.86
GitHub Action Run
2 3.13-ubuntu-latest - 44833309868.2 20 Nov 2026 11:02PM UTC 282
78.85
GitHub Action Run
3 3.11-ubuntu-latest - 44833309868.3 20 Nov 2026 11:02PM UTC 282
81.43
GitHub Action Run
4 3.10-ubuntu-latest - 44833309868.4 20 Nov 2026 11:02PM UTC 282
81.43
GitHub Action Run
5 3.12-ubuntu-latest - 44833309868.5 20 Nov 2026 11:02PM UTC 282
78.86
GitHub Action Run
6 3.10-macos-latest - 44833309868.6 20 Nov 2026 11:02PM UTC 282
81.43
GitHub Action Run
7 3.11-macos-latest - 44833309868.7 20 Nov 2026 11:02PM UTC 282
81.44
GitHub Action Run
8 3.14-ubuntu-latest - 44833309868.8 20 Nov 2026 11:02PM UTC 282
78.83
GitHub Action Run
9 3.14-macos-latest - 44833309868.9 20 Nov 2026 11:02PM UTC 282
78.83
GitHub Action Run
10 3.12-macos-latest - 44833309868.10 20 Nov 2026 11:02PM UTC 282
78.85
GitHub Action Run
Source Files on build 44833309868
  • Tree
  • List 282
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1ee4e7e2 on github
  • Prev Build on dev (#44721628215)
  • Next Build on dev (#45150632914)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc