@@ -53,7 +53,7 @@ def poetry(config: Config) -> Poetry:
5353
5454def test_bundler_should_build_a_new_venv_with_existing_python (
5555 io : BufferedIO , tmpdir : str , poetry : Poetry , mocker : MockerFixture
56- ):
56+ ) -> None :
5757 shutil .rmtree (tmpdir )
5858 mocker .patch ("poetry.installation.executor.Executor._execute_operation" )
5959
@@ -75,7 +75,7 @@ def test_bundler_should_build_a_new_venv_with_existing_python(
7575
7676def test_bundler_should_build_a_new_venv_with_given_executable (
7777 io : BufferedIO , tmpdir : str , poetry : Poetry , mocker : MockerFixture
78- ):
78+ ) -> None :
7979 shutil .rmtree (tmpdir )
8080 mocker .patch ("poetry.installation.executor.Executor._execute_operation" )
8181
@@ -98,7 +98,7 @@ def test_bundler_should_build_a_new_venv_with_given_executable(
9898
9999def test_bundler_should_build_a_new_venv_if_existing_venv_is_incompatible (
100100 io : BufferedIO , tmpdir : str , poetry : Poetry , mocker : MockerFixture
101- ):
101+ ) -> None :
102102 mocker .patch ("poetry.installation.executor.Executor._execute_operation" )
103103
104104 bundler = VenvBundler ()
@@ -120,7 +120,7 @@ def test_bundler_should_build_a_new_venv_if_existing_venv_is_incompatible(
120120
121121def test_bundler_should_use_an_existing_venv_if_compatible (
122122 io : BufferedIO , tmp_venv : VirtualEnv , poetry : Poetry , mocker : MockerFixture
123- ):
123+ ) -> None :
124124 mocker .patch ("poetry.installation.executor.Executor._execute_operation" )
125125
126126 bundler = VenvBundler ()
@@ -141,7 +141,7 @@ def test_bundler_should_use_an_existing_venv_if_compatible(
141141
142142def test_bundler_should_remove_an_existing_venv_if_forced (
143143 io : BufferedIO , tmp_venv : VirtualEnv , poetry : Poetry , mocker : MockerFixture
144- ):
144+ ) -> None :
145145 mocker .patch ("poetry.installation.executor.Executor._execute_operation" )
146146
147147 bundler = VenvBundler ()
@@ -165,7 +165,7 @@ def test_bundler_should_remove_an_existing_venv_if_forced(
165165
166166def test_bundler_should_fail_when_installation_fails (
167167 io : BufferedIO , tmpdir : str , poetry : Poetry , mocker : MockerFixture
168- ):
168+ ) -> None :
169169 mocker .patch (
170170 "poetry.installation.executor.Executor._do_execute_operation" ,
171171 side_effect = Exception (),
@@ -189,7 +189,7 @@ def test_bundler_should_fail_when_installation_fails(
189189
190190def test_bundler_should_display_a_warning_for_projects_with_no_module (
191191 io : BufferedIO , tmp_venv : VirtualEnv , mocker : MockerFixture , config : Config
192- ):
192+ ) -> None :
193193 poetry = Factory ().create_poetry (
194194 Path (__file__ ).parent .parent / "fixtures" / "simple_project_with_no_module"
195195 )
0 commit comments