We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ex:
@parameterized.expand([(True,), (False,)]) @parameterized.expand([(0,), (1,)]) def test_test(_bool, _num): """ would get: True 0 False 0 True 1 False 1 """
The text was updated successfully, but these errors were encountered:
Similar to #102
Sorry, something went wrong.
This feature would be nice, but in the meantime I am using itertools.product(), so your example above would look something like:
itertools.product()
import itertools ... @parameterized.expand(itertools.product([True, False], [0, 1], repeat=1)) def test_test(_bool, _num): ...
Alternative syntax you can use for this without itertools.product() is:
@parameterized.expand( (_bool, _num) for _bool in (True, False) for _num in (0, 1) ) def test_test(_bool, _num): ...
No branches or pull requests
Ex:
The text was updated successfully, but these errors were encountered: