File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import inspect
6- from collections .abc import Generator
76from typing import Callable , ClassVar
87from unittest import mock
9- from warnings import warn
108
119import pytest
1210
@@ -136,16 +134,6 @@ def action_list_response(action1_running, action2_running):
136134 }
137135
138136
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-
149137def build_kwargs_mock (func : Callable ) -> dict [str , mock .Mock ]:
150138 """
151139 Generate a kwargs dict that may be passed to the provided function for testing purposes.
You can’t perform that action at this time.
0 commit comments