Skip to content

Instantly share code, notes, and snippets.

@mplanchard
Created February 18, 2018 03:55
Show Gist options
  • Save mplanchard/17e952d4859249f16f4048054af9eea4 to your computer and use it in GitHub Desktop.
Save mplanchard/17e952d4859249f16f4048054af9eea4 to your computer and use it in GitHub Desktop.
pytest_parametrize_product
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