summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorAlex Meade <alex.meade@rackspace.com>2011-06-07 09:56:51 -0400
committerAlex Meade <alex.meade@rackspace.com>2011-06-07 09:56:51 -0400
commitf0c4767dc14f950f7d18cc02e16e4d310774435d (patch)
tree92d2bba74207dc96662e8f5ebdb9bfb5034eea2e /nova/tests
parent1eb789625d15b319f5bc070041a42c03e6c6b08c (diff)
Fixed type causing pylint "exception is not callable"
Added param to fake_instance_create, fake objects should appear like the real object. pylint "No value passed for parameter 'values' in function call"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_vmwareapi.py2
-rw-r--r--nova/tests/vmwareapi/db_fakes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_vmwareapi.py b/nova/tests/test_vmwareapi.py
index e5ebd1600..eddf01e9f 100644
--- a/nova/tests/test_vmwareapi.py
+++ b/nova/tests/test_vmwareapi.py
@@ -69,7 +69,7 @@ class VMWareAPIVMTestCase(test.TestCase):
'instance_type': 'm1.large',
'mac_address': 'aa:bb:cc:dd:ee:ff',
}
- self.instance = db.instance_create(values)
+ self.instance = db.instance_create(None, values)
def _create_vm(self):
"""Create and spawn the VM."""
diff --git a/nova/tests/vmwareapi/db_fakes.py b/nova/tests/vmwareapi/db_fakes.py
index 764de42d8..d4eb87daf 100644
--- a/nova/tests/vmwareapi/db_fakes.py
+++ b/nova/tests/vmwareapi/db_fakes.py
@@ -52,7 +52,7 @@ def stub_out_db_instance_api(stubs):
else:
raise NotImplementedError()
- def fake_instance_create(values):
+ def fake_instance_create(context, values):
"""Stubs out the db.instance_create method."""
type_data = INSTANCE_TYPES[values['instance_type']]