Skip to content

Commit df3ee61

Browse files
author
Tang Chen
committed
Remove methods argument from FakeHypervisorStats
methods argument is not necessary in FakeHypervisorStats class. Remove it. Change-Id: I288f71b412beb3e583e957a9fd99210bc6f3f543
1 parent 52a12e7 commit df3ee61

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)