Created
February 18, 2018 03:55
-
-
Save mplanchard/17e952d4859249f16f4048054af9eea4 to your computer and use it in GitHub Desktop.
pytest_parametrize_product
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import pytest | |
@pytest.mark.parametrize( | |
'foo, bar', itertools.product(('a', 'b'), (True, False)) | |
) | |
def test_multi(foo, bar): | |
print(foo, bar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment