perf(radio/pick): speedup radio track picking code NOCHANGELOG
This commit is contained in:
parent
24f0ee319e
commit
3c7d9b5ac8
2 changed files with 17 additions and 9 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue