@@ -249,7 +249,8 @@ def bar(self, arg):
249249 ),
250250)
251251def test_instance_method_spy_exception (
252- exc_cls : Type [BaseException ], mocker : MockerFixture ,
252+ exc_cls : Type [BaseException ],
253+ mocker : MockerFixture ,
253254) -> None :
254255 class Foo :
255256 def bar (self , arg ):
@@ -627,12 +628,12 @@ def test_foo(mocker):
627628
628629
629630def test_parse_ini_boolean () -> None :
630- import pytest_mock
631+ from pytest_mock . _util import parse_ini_boolean
631632
632- assert pytest_mock . parse_ini_boolean ("True" ) is True
633- assert pytest_mock . parse_ini_boolean ("false" ) is False
633+ assert parse_ini_boolean ("True" ) is True
634+ assert parse_ini_boolean ("false" ) is False
634635 with pytest .raises (ValueError ):
635- pytest_mock . parse_ini_boolean ("foo" )
636+ parse_ini_boolean ("foo" )
636637
637638
638639def test_patched_method_parameter_name (mocker : MockerFixture ) -> None :
@@ -651,8 +652,7 @@ def request(cls, method, args):
651652
652653
653654def test_monkeypatch_native (testdir : Any ) -> None :
654- """Automatically disable monkeypatching when --tb=native.
655- """
655+ """Automatically disable monkeypatching when --tb=native."""
656656 testdir .makepyfile (
657657 """
658658 def test_foo(mocker):
@@ -676,8 +676,7 @@ def test_foo(mocker):
676676
677677
678678def test_monkeypatch_no_terminal (testdir : Any ) -> None :
679- """Don't crash without 'terminal' plugin.
680- """
679+ """Don't crash without 'terminal' plugin."""
681680 testdir .makepyfile (
682681 """
683682 def test_foo(mocker):
@@ -692,8 +691,7 @@ def test_foo(mocker):
692691
693692
694693def test_standalone_mock (testdir : Any ) -> None :
695- """Check that the "mock_use_standalone" is being used.
696- """
694+ """Check that the "mock_use_standalone" is being used."""
697695 testdir .makepyfile (
698696 """
699697 def test_foo(mocker):
@@ -713,8 +711,7 @@ def test_foo(mocker):
713711
714712@pytest .mark .usefixtures ("needs_assert_rewrite" )
715713def test_detailed_introspection (testdir : Any ) -> None :
716- """Check that the "mock_use_standalone" is being used.
717- """
714+ """Check that the "mock_use_standalone" is being used."""
718715 testdir .makepyfile (
719716 """
720717 def test(mocker):
@@ -755,8 +752,7 @@ def test(mocker):
755752)
756753@pytest .mark .usefixtures ("needs_assert_rewrite" )
757754def test_detailed_introspection_async (testdir : Any ) -> None :
758- """Check that the "mock_use_standalone" is being used.
759- """
755+ """Check that the "mock_use_standalone" is being used."""
760756 testdir .makepyfile (
761757 """
762758 import pytest
0 commit comments