Skip to content

Commit 4bd49e5

Browse files
LKaemmerlingLD250
andauthored
Apply suggestions from code review
Co-Authored-By: LD250 <denis.levtchenko@gmail.com>
1 parent f23f848 commit 4bd49e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hcloud/datacenters/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_by_name(self, name):
8888
"""Get datacenter by name
8989
9090
:param name: str
91-
Used to get location by name.
91+
Used to get datacenter by name.
9292
:return: :class:`BoundDatacenter <hcloud.datacenters.client.BoundDatacenter>`
9393
"""
9494
return super(DatacentersClient, self).get_by_name(name)

tests/unit/core/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get_list(self, name, page=None, per_page=None):
216216

217217
return constructor
218218

219-
def test_get_get_by_name_result_exists(self, client_class_constructor):
219+
def test_get_by_name_result_exists(self, client_class_constructor):
220220
json_content = {"candies": [1]}
221221

222222
def json_content_function(p):
@@ -228,7 +228,7 @@ def json_content_function(p):
228228

229229
assert result == 1
230230

231-
def test_get_get_by_name_result_doe_not_exist(self, client_class_constructor):
231+
def test_get_by_name_result_does_not_exist(self, client_class_constructor):
232232
json_content = {"candies": []}
233233

234234
def json_content_function(p):

0 commit comments

Comments
 (0)