@@ -325,7 +325,7 @@ def _get_option_with_source(option, envname):
325
325
_setup_django ()
326
326
327
327
328
- def pytest_report_header (config ):
328
+ def pytest_report_header ():
329
329
if _report_header :
330
330
return ["django: " + ", " .join (_report_header )]
331
331
@@ -415,7 +415,7 @@ def pytest_runtest_setup(item):
415
415
_disable_class_methods (item .cls )
416
416
417
417
418
- def pytest_collection_modifyitems (session , config , items ):
418
+ def pytest_collection_modifyitems (items ):
419
419
def get_order_number (test ):
420
420
marker_db = test .get_closest_marker ('django_db' )
421
421
if marker_db :
@@ -553,7 +553,7 @@ def _dj_autoclear_mailbox():
553
553
554
554
555
555
@pytest .fixture (scope = "function" )
556
- def mailoutbox (monkeypatch , django_mail_patch_dns , _dj_autoclear_mailbox ):
556
+ def mailoutbox (django_mail_patch_dns , _dj_autoclear_mailbox ):
557
557
if not django_settings_is_configured ():
558
558
return
559
559
@@ -570,7 +570,7 @@ def django_mail_patch_dns(monkeypatch, django_mail_dnsname):
570
570
571
571
572
572
@pytest .fixture (scope = "function" )
573
- def django_mail_dnsname (monkeypatch ):
573
+ def django_mail_dnsname ():
574
574
return "fake-tests.example.com"
575
575
576
576
@@ -605,7 +605,7 @@ def restore():
605
605
606
606
607
607
@pytest .fixture (autouse = True , scope = "session" )
608
- def _fail_for_invalid_template_variable (request ):
608
+ def _fail_for_invalid_template_variable ():
609
609
"""Fixture that fails for invalid variables in templates.
610
610
611
611
This fixture will fail each test that uses django template rendering
0 commit comments