Show deprecation warning for cached_setup

This commit is contained in:
Bruno Oliveira
2018-09-13 14:25:46 -03:00
parent bf074b37a3
commit 482bd5efd2
4 changed files with 31 additions and 0 deletions

View File

@@ -977,6 +977,7 @@ class TestRequestCachedSetup(object):
)
reprec.assertoutcome(passed=4)
@pytest.mark.filterwarnings("ignore:cached_setup is deprecated")
def test_request_cachedsetup_extrakey(self, testdir):
item1 = testdir.getitem("def test_func(): pass")
req1 = fixtures.FixtureRequest(item1)
@@ -994,6 +995,7 @@ class TestRequestCachedSetup(object):
assert ret1 == ret1b
assert ret2 == ret2b
@pytest.mark.filterwarnings("ignore:cached_setup is deprecated")
def test_request_cachedsetup_cache_deletion(self, testdir):
item1 = testdir.getitem("def test_func(): pass")
req1 = fixtures.FixtureRequest(item1)