perf(radio/pick): speedup radio track picking code NOCHANGELOG

This commit is contained in:
JuniorJPDJ 2022-11-08 08:53:32 +00:00 committed by Georg Krause
commit 3c7d9b5ac8
2 changed files with 17 additions and 9 deletions

View file

@ -21,7 +21,7 @@ def test_can_pick_track_from_choices():
previous_choices = [first_pick]
for remaining_choice in choices:
pick = radio.pick(choices=choices, previous_choices=previous_choices)
assert pick in set(choices).difference(previous_choices)
assert pick in set(choices).difference(set(previous_choices))
def test_can_pick_by_weight():