Skip to content

Commit 8eade18

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Remove methods argument from FakeHypervisorStats"
2 parents 92950b6 + df3ee61 commit 8eade18

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • openstackclient/tests/compute/v2

openstackclient/tests/compute/v2/fakes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class FakeHypervisorStats(object):
284284
"""Fake one or more hypervisor stats."""
285285

286286
@staticmethod
287-
def create_one_hypervisor_stats(attrs={}, methods={}):
287+
def create_one_hypervisor_stats(attrs={}):
288288
"""Create a fake hypervisor stats.
289289
290290
:param Dictionary attrs:
@@ -311,7 +311,6 @@ def create_one_hypervisor_stats(attrs={}, methods={}):
311311

312312
# Set default method.
313313
hypervisor_stats_method = {'to_dict': stats_info}
314-
hypervisor_stats_method.update(methods)
315314

316315
hypervisor_stats = fakes.FakeResource(
317316
info=copy.deepcopy(stats_info),

0 commit comments

Comments
 (0)