@@ -299,7 +299,6 @@ def test_custom_content_in_summary(self, testdir):
299
299
import pytest
300
300
from py.xml import html
301
301
302
- @pytest.mark.optionalhook
303
302
def pytest_html_results_summary(prefix, summary, postfix):
304
303
prefix.append(html.p("prefix is {0}"))
305
304
summary.extend([html.p("extra summary is {1}")])
@@ -320,7 +319,7 @@ def test_extra_html(self, testdir):
320
319
testdir .makeconftest (
321
320
"""
322
321
import pytest
323
- @pytest.mark. hookwrapper
322
+ @pytest.hookimpl( hookwrapper=True)
324
323
def pytest_runtest_makereport(item, call):
325
324
outcome = yield
326
325
report = outcome.get_result()
@@ -344,7 +343,7 @@ def test_extra_text(self, testdir, content, encoded):
344
343
testdir .makeconftest (
345
344
"""
346
345
import pytest
347
- @pytest.mark. hookwrapper
346
+ @pytest.hookimpl( hookwrapper=True)
348
347
def pytest_runtest_makereport(item, call):
349
348
outcome = yield
350
349
report = outcome.get_result()
@@ -367,7 +366,7 @@ def test_extra_json(self, testdir):
367
366
testdir .makeconftest (
368
367
"""
369
368
import pytest
370
- @pytest.mark. hookwrapper
369
+ @pytest.hookimpl( hookwrapper=True)
371
370
def pytest_runtest_makereport(item, call):
372
371
outcome = yield
373
372
report = outcome.get_result()
@@ -395,7 +394,7 @@ def test_extra_url(self, testdir):
395
394
testdir .makeconftest (
396
395
"""
397
396
import pytest
398
- @pytest.mark. hookwrapper
397
+ @pytest.hookimpl( hookwrapper=True)
399
398
def pytest_runtest_makereport(item, call):
400
399
outcome = yield
401
400
report = outcome.get_result()
@@ -426,7 +425,7 @@ def test_extra_image(self, testdir, mime_type, extension):
426
425
testdir .makeconftest (
427
426
"""
428
427
import pytest
429
- @pytest.mark. hookwrapper
428
+ @pytest.hookimpl( hookwrapper=True)
430
429
def pytest_runtest_makereport(item, call):
431
430
outcome = yield
432
431
report = outcome.get_result()
@@ -456,7 +455,7 @@ def test_extra_text_separated(self, testdir, content):
456
455
testdir .makeconftest (
457
456
"""
458
457
import pytest
459
- @pytest.mark. hookwrapper
458
+ @pytest.hookimpl( hookwrapper=True)
460
459
def pytest_runtest_makereport(item, call):
461
460
outcome = yield
462
461
report = outcome.get_result()
@@ -489,7 +488,7 @@ def test_extra_image_separated(self, testdir, file_extension, extra_type):
489
488
testdir .makeconftest (
490
489
"""
491
490
import pytest
492
- @pytest.mark. hookwrapper
491
+ @pytest.hookimpl( hookwrapper=True)
493
492
def pytest_runtest_makereport(item, call):
494
493
outcome = yield
495
494
report = outcome.get_result()
@@ -523,7 +522,7 @@ def test_extra_image_separated_rerun(self, testdir, file_extension, extra_type):
523
522
testdir .makeconftest (
524
523
"""
525
524
import pytest
526
- @pytest.mark. hookwrapper
525
+ @pytest.hookimpl( hookwrapper=True)
527
526
def pytest_runtest_makereport(item, call):
528
527
outcome = yield
529
528
report = outcome.get_result()
@@ -561,7 +560,7 @@ def test_extra_image_non_b64(self, testdir, src_type):
561
560
testdir .makeconftest (
562
561
"""
563
562
import pytest
564
- @pytest.mark. hookwrapper
563
+ @pytest.hookimpl( hookwrapper=True)
565
564
def pytest_runtest_makereport(item, call):
566
565
outcome = yield
567
566
report = outcome.get_result()
@@ -583,7 +582,7 @@ def test_very_long_test_name(self, testdir):
583
582
testdir .makeconftest (
584
583
"""
585
584
import pytest
586
- @pytest.mark. hookwrapper
585
+ @pytest.hookimpl( hookwrapper=True)
587
586
def pytest_runtest_makereport(item, call):
588
587
outcome = yield
589
588
report = outcome.get_result()
@@ -776,7 +775,7 @@ def test_utf8_longrepr(self, testdir, content):
776
775
testdir .makeconftest (
777
776
"""
778
777
import pytest
779
- @pytest.mark. hookwrapper
778
+ @pytest.hookimpl( hookwrapper=True)
780
779
def pytest_runtest_makereport(item, call):
781
780
outcome = yield
782
781
report = outcome.get_result()
0 commit comments