Skip to content

Instantly share code, notes, and snippets.

@mplanchard
Created February 18, 2018 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplanchard/55d435dd7dbb9c083419230b01b3e0c0 to your computer and use it in GitHub Desktop.
Save mplanchard/55d435dd7dbb9c083419230b01b3e0c0 to your computer and use it in GitHub Desktop.
pytest parametrize stack
import pytest
@pytest.mark.parametrize('foo', ('a', 'b'))
@pytest.mark.parametrize('bar', (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