Skip to content

Commit cc306b9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 116685e commit cc306b9

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

tests/test_http.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from pytest_localserver import http
1111
from 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
1615
httpserver = 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

tests/test_https.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from pytest_localserver import https
55
from 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
109
httpsserver = plugin.httpsserver

tests/test_smtp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from pytest_localserver import plugin
1111

12-
1312
smtp = pytest.importorskip("pytest_localserver.smtp")
1413

1514

0 commit comments

Comments
 (0)