Skip to content

Instantly share code, notes, and snippets.

@kangeugine
Created August 25, 2017 05:06
Show Gist options
  • Save kangeugine/b14bdf50e5c7433ef2185fced63eaecd to your computer and use it in GitHub Desktop.
Save kangeugine/b14bdf50e5c7433ef2185fced63eaecd to your computer and use it in GitHub Desktop.
Pytest Mark Parametrize
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