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"
This commit is contained in:
		@@ -69,7 +69,7 @@ class VMWareAPIVMTestCase(test.TestCase):
 | 
				
			|||||||
                  'instance_type': 'm1.large',
 | 
					                  'instance_type': 'm1.large',
 | 
				
			||||||
                  'mac_address': 'aa:bb:cc:dd:ee:ff',
 | 
					                  '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):
 | 
					    def _create_vm(self):
 | 
				
			||||||
        """Create and spawn the VM."""
 | 
					        """Create and spawn the VM."""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ def stub_out_db_instance_api(stubs):
 | 
				
			|||||||
            else:
 | 
					            else:
 | 
				
			||||||
                raise NotImplementedError()
 | 
					                raise NotImplementedError()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def fake_instance_create(values):
 | 
					    def fake_instance_create(context, values):
 | 
				
			||||||
        """Stubs out the db.instance_create method."""
 | 
					        """Stubs out the db.instance_create method."""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        type_data = INSTANCE_TYPES[values['instance_type']]
 | 
					        type_data = INSTANCE_TYPES[values['instance_type']]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user