File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1010from pytest_localserver import http
1111from pytest_localserver import plugin
1212
13-
1413# define test fixture here again in order to run tests without having to
1514# install the plugin anew every single time
1615httpserver = plugin .httpserver
@@ -304,17 +303,13 @@ def test_httpserver_init_failure_no_stderr_during_cleanup(tmp_path):
304303
305304 script_path = tmp_path .joinpath ("script.py" )
306305
307- script_path .write_text (
308- textwrap .dedent (
309- """
306+ script_path .write_text (textwrap .dedent ("""
310307 from pytest_localserver import http
311308 from unittest.mock import patch
312309
313310 with patch("pytest_localserver.http.make_server", side_effect=RuntimeError("init failure")):
314311 server = http.ContentServer()
315- """
316- )
317- )
312+ """ ))
318313
319314 result = subprocess .run ([sys .executable , str (script_path )], stderr = subprocess .PIPE )
320315
Original file line number Diff line number Diff line change 44from pytest_localserver import https
55from pytest_localserver import plugin
66
7-
87# define test fixture here again in order to run tests without having to
98# install the plugin anew every single time
109httpsserver = plugin .httpsserver
Original file line number Diff line number Diff line change 99
1010from pytest_localserver import plugin
1111
12-
1312smtp = pytest .importorskip ("pytest_localserver.smtp" )
1413
1514
You can’t perform that action at this time.
0 commit comments