Group warnings by message instead of by test id

This commit is contained in:
Bruno Oliveira
2019-01-22 19:42:22 -02:00
parent ba452dbcf0
commit 9543d1901f
4 changed files with 60 additions and 21 deletions

View File

@@ -0,0 +1,16 @@
import warnings
import pytest
def func():
warnings.warn(UserWarning("foo"))
@pytest.mark.parametrize("i", range(5))
def test_foo(i):
func()
def test_bar():
func()