We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca4319 commit ede12f1Copy full SHA for ede12f1
1 file changed
tests/unit/conftest.py
@@ -3,10 +3,8 @@
3
from __future__ import annotations
4
5
import inspect
6
-from collections.abc import Generator
7
from typing import Callable, ClassVar
8
from unittest import mock
9
-from warnings import warn
10
11
import pytest
12
@@ -136,16 +134,6 @@ def action_list_response(action1_running, action2_running):
136
134
}
137
135
138
139
-@pytest.fixture()
140
-def hetzner_client() -> Generator[Client]:
141
- warn("DEPRECATED")
142
- client = Client(token="token")
143
- patcher = mock.patch.object(client, "request")
144
- patcher.start()
145
- yield client
146
- patcher.stop()
147
-
148
149
def build_kwargs_mock(func: Callable) -> dict[str, mock.Mock]:
150
"""
151
Generate a kwargs dict that may be passed to the provided function for testing purposes.
0 commit comments