Merge "Fix inadvertent generation of file during tox test"
This commit is contained in:
commit
4955d07f03
@ -600,11 +600,12 @@ class ShellTest(utils.TestCase):
|
|||||||
def test_module_retrieve(self):
|
def test_module_retrieve(self):
|
||||||
with mock.patch.object(troveclient.v1.modules.Module, '__getattr__',
|
with mock.patch.object(troveclient.v1.modules.Module, '__getattr__',
|
||||||
mock.Mock(return_value='4321')):
|
mock.Mock(return_value='4321')):
|
||||||
self.run_command('module-retrieve 1234')
|
with mock.patch.object(builtins, 'open'):
|
||||||
self.assert_called(
|
self.run_command('module-retrieve 1234')
|
||||||
'GET',
|
self.assert_called(
|
||||||
'/instances/1234/modules?'
|
'GET',
|
||||||
'include_contents=True&from_guest=True')
|
'/instances/1234/modules?'
|
||||||
|
'include_contents=True&from_guest=True')
|
||||||
|
|
||||||
def test_limit_list(self):
|
def test_limit_list(self):
|
||||||
self.run_command('limit-list')
|
self.run_command('limit-list')
|
||||||
|
Loading…
Reference in New Issue
Block a user