Fix typo collecd -> collectd
Change-Id: I282266bbcd45ccf4f714c40faec564b1b0ee1478
This commit is contained in:
parent
02b65dc416
commit
84b47dc386
@ -34,7 +34,7 @@ Logger = logging.getLoggerClass()
|
||||
|
||||
|
||||
def mock_collectd(**kwargs):
|
||||
"""Return collecd module with collecd logging hooks."""
|
||||
"""Return collectd module with collectd logging hooks."""
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedCollectd.__name__, specs=True,
|
||||
get_dataset=mock.MagicMock(side_effect=Exception),
|
||||
@ -76,7 +76,7 @@ class MockedCollectd(object):
|
||||
|
||||
|
||||
def mock_config(**kwargs):
|
||||
"""Return collecd module with collecd logging hooks."""
|
||||
"""Return collectd module with collectd logging hooks."""
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedConfig.__name__, specs=True,
|
||||
**kwargs)
|
||||
|
@ -33,7 +33,7 @@ Logger = logging.getLoggerClass()
|
||||
|
||||
|
||||
def mock_collectd(**kwargs):
|
||||
"Returns collecd module with collecd logging hooks."
|
||||
"Returns collectd module with collectd logging hooks."
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedCollectd.__name__, specs=True,
|
||||
get_dataset=mock.MagicMock(side_effect=Exception), **kwargs)
|
||||
@ -71,7 +71,7 @@ class MockedCollectd(object):
|
||||
|
||||
|
||||
def mock_config(BATCH_SIZE=1, **kwargs):
|
||||
"Returns collecd module with collecd logging hooks."
|
||||
"Returns collectd module with collectd logging hooks."
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedConfig.__name__, specs=True,
|
||||
BATCH_SIZE=BATCH_SIZE, **kwargs)
|
||||
|
@ -24,7 +24,7 @@ from collectd_ceilometer.gnocchi import writer
|
||||
|
||||
|
||||
def mock_collectd(**kwargs):
|
||||
"Returns collectd module with collecd logging hooks."
|
||||
"Returns collectd module with collectd logging hooks."
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedCollectd.__name__, specs=True,
|
||||
get_dataset=mock.MagicMock(side_effect=Exception), **kwargs)
|
||||
@ -62,7 +62,7 @@ class MockedCollectd(object):
|
||||
|
||||
|
||||
def mock_config(BATCH_SIZE=1, **kwargs):
|
||||
"Returns collectd module with collecd logging hooks."
|
||||
"Returns collectd module with collectd logging hooks."
|
||||
return mock.patch(
|
||||
__name__ + '.' + MockedConfig.__name__, specs=True,
|
||||
BATCH_SIZE=BATCH_SIZE, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user