Skip to content

Commit fbe4d28

Browse files
committed
test: some manual fixes
1 parent 8740583 commit fbe4d28

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

tests/unit/load_balancer_types/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
from unittest import mock
4+
35
import pytest
46

57
from hcloud import Client

tests/unit/locations/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
from unittest import mock
4+
35
import pytest # noqa: F401
46

57
from hcloud import Client

tests/unit/networks/test_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ def test_create_with_route(
444444

445445
def test_create_with_route_and_expose_routes_to_vswitch(
446446
self,
447+
request_mock: mock.MagicMock,
447448
networks_client,
448449
network_route,
449450
network_create_response_with_expose_routes_to_vswitch,

tests/unit/volumes/test_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,11 @@ def test_create_with_server(
329329
},
330330
)
331331

332-
def test_create_negative_size(self, volumes_client):
332+
def test_create_negative_size(
333+
self,
334+
request_mock: mock.MagicMock,
335+
volumes_client,
336+
):
333337
with pytest.raises(ValueError) as e:
334338
volumes_client.create(
335339
-100, "database-storage", location=Location(name="location")

0 commit comments

Comments
 (0)