From 1227b133733efc5dc133dc26d7dc1b909f302408 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:52:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/conftest.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 84ac63cf..49c2b2c6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -119,7 +119,9 @@ def request(self, method, path, **kwargs): **response_kwargs, request=httpx.Request(method=method, url=path), ) - assert False, f"No response found for kwargs {request_kwargs}\nExpected answers are {self.responses}" + assert False, ( + f"No response found for kwargs {request_kwargs}\nExpected answers are {self.responses}" + ) def __getattr__(self, value): if value in ["get", "post", "patch", "delete", "put"]: @@ -201,14 +203,16 @@ def __init__(self): def command(self, command, *args, env=None): args = " ".join(("git", command, *args)) if not self.expected_calls: - assert ( - False - ), f"Received command `{args}` with env {env} while expecting nothing." + assert False, ( + f"Received command `{args}` with env {env} while expecting nothing." + ) call = self.expected_calls[0] exp_args, exp_env, exit_code, stdout = call if not (args == exp_args and (not exp_env or exp_env == env)): - assert False, f"Expected command is not `{args}` with env {env}\nExpected command is {self.expected_calls[0]}" + assert False, ( + f"Expected command is not `{args}` with env {env}\nExpected command is {self.expected_calls[0]}" + ) self.expected_calls.pop(0) if exit_code == 0: