Fix linting issues in test files
This commit is contained in:
parent
956554175f
commit
ba30ae763f
|
@ -11,13 +11,15 @@ import reactive.barbican_handlers as handlers
|
|||
_when_args = {}
|
||||
_when_not_args = {}
|
||||
|
||||
|
||||
def mock_hook_factory(d):
|
||||
|
||||
def mock_hook(*args, **kwargs):
|
||||
|
||||
def inner(f):
|
||||
# remember what we were passed. Note that we can't actually determine
|
||||
# the class we're attached to, as the decorator only gets the function.
|
||||
# remember what we were passed. Note that we can't actually
|
||||
# determine the class we're attached to, as the decorator only gets
|
||||
# the function.
|
||||
try:
|
||||
d[f.__name__].append(dict(args=args, kwargs=kwargs))
|
||||
except KeyError:
|
||||
|
|
|
@ -147,7 +147,7 @@ class TestBarbicanCharm(Helper):
|
|||
|
||||
def test__init__(self):
|
||||
self.patch(barbican.ch_utils, 'os_release')
|
||||
b = barbican.BarbicanCharm()
|
||||
barbican.BarbicanCharm()
|
||||
self.os_release.assert_called_once_with('python-keystonemiddleware')
|
||||
|
||||
def test_install(self):
|
||||
|
|
Loading…
Reference in New Issue