rename pytest_warning_record -> pytest_warning_recorded

This commit is contained in:
Gleb Nikonorov
2020-05-24 20:43:23 -04:00
parent b02d087dbd
commit 088d400b2d
5 changed files with 11 additions and 11 deletions

View File

@@ -268,7 +268,7 @@ def test_warning_captured_hook(testdir):
collected = []
class WarningCollector:
def pytest_warning_record(self, warning_message, when, nodeid):
def pytest_warning_recorded(self, warning_message, when, nodeid):
collected.append((str(warning_message.message), when, nodeid))
result = testdir.runpytest(plugins=[WarningCollector()])
@@ -648,7 +648,7 @@ class TestStackLevel:
captured = []
@classmethod
def pytest_warning_record(cls, warning_message, when, nodeid, location):
def pytest_warning_recorded(cls, warning_message, when, nodeid, location):
cls.captured.append((warning_message, location))
testdir.plugins = [CapturedWarnings()]