Skip to content

Instantly share code, notes, and snippets.

@mplanchard
Created February 18, 2018 03:48
Show Gist options
  • Select an option

  • Save mplanchard/c2e081d25920a7d88405e3497707e738 to your computer and use it in GitHub Desktop.

Select an option

Save mplanchard/c2e081d25920a7d88405e3497707e738 to your computer and use it in GitHub Desktop.

Revisions

  1. mplanchard created this gist Feb 18, 2018.
    10 changes: 10 additions & 0 deletions pytest_parametrize_multi.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    import pytest

    @pytest.mark.parametrize('foo, bar', (
    ('a', True),
    ('a', False),
    ('b', True),
    ('b', False)
    ))
    def test_multi(foo, bar):
    print(foo, bar)