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 game rule that can keep going after rolling a 6 #27

Open
munichpavel opened this issue Dec 31, 2020 · 0 comments
Open

Add game rule that can keep going after rolling a 6 #27

munichpavel opened this issue Dec 31, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@munichpavel
Copy link
Owner

munichpavel commented Dec 31, 2020

Having a while roll_value == 6 kills my client unit tests of Client.take_turn(), as they run for ever with my monkeypatched roll value of 6 in one test.

The type of situation I would like is that the dice roll returns a 6, but then a 1. I will have to change my test in any case ... like here:
https://stackoverflow.com/questions/24897145/python-mock-multiple-return-values?noredirect=1&lq=1

Yup, that's it in accepted answer, use an iterable with Mock.

@munichpavel munichpavel added the bug Something isn't working label Jan 2, 2021
@munichpavel munichpavel self-assigned this Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant