Skip to content

Commit ede12f1

Browse files
committed
refactor: remove unused fixture
1 parent bca4319 commit ede12f1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/unit/conftest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
from __future__ import annotations
44

55
import inspect
6-
from collections.abc import Generator
76
from typing import Callable, ClassVar
87
from unittest import mock
9-
from warnings import warn
108

119
import 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-
149137
def 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.

0 commit comments

Comments
 (0)