Created
February 18, 2018 03:48
-
-
Save mplanchard/c2e081d25920a7d88405e3497707e738 to your computer and use it in GitHub Desktop.
pytest parametrize multi
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 pytest | |
@pytest.mark.parametrize('foo, bar', ( | |
('a', True), | |
('a', False), | |
('b', True), | |
('b', 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