Created
August 25, 2017 05:06
-
-
Save kangeugine/b14bdf50e5c7433ef2185fced63eaecd to your computer and use it in GitHub Desktop.
Pytest Mark Parametrize
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 | |
def is_int(age): | |
return isinstance(age, int) | |
@pytest.mark.parametrize("age", [ | |
"five", | |
1.5, | |
{2: 3}, | |
[2, 5], | |
() | |
]) | |
def test_is_int(age): | |
assert is_int(age) == False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment