Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

flake8==3.6.0
isort==4.3.4
mock==2.0.0
pytest
tox==3.23.1
black==21.7b0
2 changes: 1 addition & 1 deletion tests/unit/actions/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest

from hcloud.actions.client import ActionsClient, BoundAction
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/certificates/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.actions.client import BoundAction
from hcloud.certificates.client import CertificatesClient, BoundCertificate
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest
from hcloud import Client

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest

from hcloud.core.client import BoundModelBase, ClientEntityBase, GetEntityByNameMixin
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/datacenters/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest # noqa: F401
import mock # noqa: F401
from unittest import mock # noqa: F401

from hcloud.datacenters.client import DatacentersClient, BoundDatacenter
from hcloud.datacenters.domain import DatacenterServerTypes
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/firewalls/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.firewalls.client import FirewallsClient, BoundFirewall
from hcloud.actions.client import BoundAction
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/floating_ips/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.actions.client import BoundAction
from hcloud.servers.client import BoundServer
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/images/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock
import datetime
from dateutil.tz import tzoffset

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/isos/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock
import datetime
from dateutil.tz import tzoffset

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/load_balancer_types/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock


from hcloud.load_balancer_types.client import LoadBalancerTypesClient
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/load_balancers/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest

from hcloud.load_balancer_types.domain import LoadBalancerType
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/locations/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest # noqa: F401
import mock # noqa: F401
from unittest import mock # noqa: F401

from hcloud.locations.client import LocationsClient

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/networks/test_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from dateutil.parser import isoparse
import mock
from unittest import mock

from hcloud.actions.client import BoundAction
from hcloud.networks.client import BoundNetwork, NetworksClient
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/placement_groups/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.placement_groups.client import BoundPlacementGroup, PlacementGroupsClient

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/primary_ips/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.primary_ips.client import PrimaryIPsClient, BoundPrimaryIP
from hcloud.primary_ips.domain import PrimaryIP
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/server_types/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock


from hcloud.server_types.client import ServerTypesClient
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/servers/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import pytest

from hcloud.firewalls.client import BoundFirewall
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ssh_keys/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
import mock
from unittest import mock

from hcloud.ssh_keys.client import SSHKeysClient, BoundSSHKey
from hcloud.ssh_keys.domain import SSHKey
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/volumes/test_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from dateutil.parser import isoparse
import mock
from unittest import mock

from hcloud.actions.client import BoundAction
from hcloud.servers.client import BoundServer
Expand Down