diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2019-03-28 13:41:56 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2019-03-28 13:41:56 -0300 |
commit | 65c8e8a09e56acbb992a4cad462f01cfd82617d0 (patch) | |
tree | d08131992c267417ea4ce69c8c760812522f8a33 /testing/test_reports.py | |
parent | 9311d822c7718eadd6167f1dcd67d00ec47151bd (diff) | |
download | pytest-65c8e8a09e56acbb992a4cad462f01cfd82617d0.tar.gz |
Rename hooks: to/from_serializable
Diffstat (limited to 'testing/test_reports.py')
-rw-r--r-- | testing/test_reports.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/test_reports.py b/testing/test_reports.py index 22d5fce34..6d2b167f8 100644 --- a/testing/test_reports.py +++ b/testing/test_reports.py @@ -257,11 +257,11 @@ class TestHooks: reports = reprec.getreports("pytest_runtest_logreport") assert len(reports) == 6 for rep in reports: - data = pytestconfig.hook.pytest_report_serialize( + data = pytestconfig.hook.pytest_report_to_serializable( config=pytestconfig, report=rep ) assert data["_report_type"] == "TestReport" - new_rep = pytestconfig.hook.pytest_report_unserialize( + new_rep = pytestconfig.hook.pytest_report_from_serializable( config=pytestconfig, data=data ) assert new_rep.nodeid == rep.nodeid @@ -279,11 +279,11 @@ class TestHooks: reports = reprec.getreports("pytest_collectreport") assert len(reports) == 2 for rep in reports: - data = pytestconfig.hook.pytest_report_serialize( + data = pytestconfig.hook.pytest_report_to_serializable( config=pytestconfig, report=rep ) assert data["_report_type"] == "CollectReport" - new_rep = pytestconfig.hook.pytest_report_unserialize( + new_rep = pytestconfig.hook.pytest_report_from_serializable( config=pytestconfig, data=data ) assert new_rep.nodeid == rep.nodeid @@ -303,11 +303,11 @@ class TestHooks: reports = reprec.getreports(hook_name) assert reports rep = reports[0] - data = pytestconfig.hook.pytest_report_serialize( + data = pytestconfig.hook.pytest_report_to_serializable( config=pytestconfig, report=rep ) data["_report_type"] = "Unknown" with pytest.raises(AssertionError): - _ = pytestconfig.hook.pytest_report_unserialize( + _ = pytestconfig.hook.pytest_report_from_serializable( config=pytestconfig, data=data ) |