Skip to content

Commit 741687e

Browse files
committed
text: updat test to work with base client
1 parent 679f8e1 commit 741687e

File tree

2 files changed

+240
-199
lines changed

2 files changed

+240
-199
lines changed

tests/unit/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
from hcloud import Client
88

99

10+
@pytest.fixture(autouse=True, scope="session")
11+
def patch_package_version():
12+
with mock.patch("hcloud._client.__version__", "0.0.0"):
13+
yield
14+
15+
1016
@pytest.fixture(autouse=True, scope="function")
1117
def mocked_requests():
1218
patcher = mock.patch("hcloud._client.requests")

0 commit comments

Comments
 (0)