Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
9 changes: 2 additions & 7 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from pytest_localserver import http
from pytest_localserver import plugin


# define test fixture here again in order to run tests without having to
# install the plugin anew every single time
httpserver = plugin.httpserver
Expand Down Expand Up @@ -304,17 +303,13 @@ def test_httpserver_init_failure_no_stderr_during_cleanup(tmp_path):

script_path = tmp_path.joinpath("script.py")

script_path.write_text(
textwrap.dedent(
"""
script_path.write_text(textwrap.dedent("""
from pytest_localserver import http
from unittest.mock import patch

with patch("pytest_localserver.http.make_server", side_effect=RuntimeError("init failure")):
server = http.ContentServer()
"""
)
)
"""))

result = subprocess.run([sys.executable, str(script_path)], stderr=subprocess.PIPE)

Expand Down
1 change: 0 additions & 1 deletion tests/test_https.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pytest_localserver import https
from pytest_localserver import plugin


# define test fixture here again in order to run tests without having to
# install the plugin anew every single time
httpsserver = plugin.httpsserver
Expand Down
1 change: 0 additions & 1 deletion tests/test_smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from pytest_localserver import plugin


smtp = pytest.importorskip("pytest_localserver.smtp")


Expand Down