Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #357

Merged
merged 2 commits into from
Aug 24, 2024
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/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 3 additions & 3 deletions pytest_httpserver/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def pytest_sessionfinish(session, exitstatus): # noqa: ARG001
Plugin.SERVER.stop()


@pytest.fixture()
@pytest.fixture
def httpserver(make_httpserver):
server = make_httpserver
server.clear()
Expand All @@ -78,7 +78,7 @@ def make_httpserver_ipv4(httpserver_ssl_context):
server.stop()


@pytest.fixture()
@pytest.fixture
def httpserver_ipv4(make_httpserver_ipv4):
server = make_httpserver_ipv4
server.clear()
Expand All @@ -95,7 +95,7 @@ def make_httpserver_ipv6(httpserver_ssl_context):
server.stop()


@pytest.fixture()
@pytest.fixture
def httpserver_ipv6(make_httpserver_ipv6):
server = make_httpserver_ipv6
server.clear()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_blocking_httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def then_the_response_is_got_from(server_connection, response):
assert server_connection.get(timeout=9).json() == response


@pytest.fixture()
@pytest.fixture
def httpserver():
server = BlockingHTTPServer(timeout=1)
server.start()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_log_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get(self):
requests.get(self.url)


@pytest.fixture()
@pytest.fixture
def my_fixture():
client = Client()
yield client
Expand Down
2 changes: 1 addition & 1 deletion tests/test_port_changing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
HOST_KEY = "PYTEST_HTTPSERVER_HOST"


@pytest.fixture()
@pytest.fixture
def tmpenv():
old_vars = {}
for key in (HOST_KEY, PORT_KEY):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_threaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pytest_httpserver import HTTPServer


@pytest.fixture()
@pytest.fixture
def threaded() -> Iterable[HTTPServer]:
server = HTTPServer(threaded=True)
server.start()
Expand Down