Trivial: Remove unused method
'fake_db_flavor' defined in nova.tests.unit.api.openstack.compute.test_flavor_manage is not used anywhere in the code so removed it to reduce code. 'fake_db_driver' which is being used at other places is defined in nova.tests.unit.fake_flavor. TrivialFix Change-Id: Ib93e2afbec5574f1b7c443d755cd7ea928b03585
This commit is contained in:
parent
7d961a9124
commit
dd9c13bdc3
@ -13,8 +13,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import datetime
|
||||
|
||||
import mock
|
||||
from oslo_serialization import jsonutils
|
||||
import six
|
||||
@ -29,31 +27,6 @@ from nova import test
|
||||
from nova.tests.unit.api.openstack import fakes
|
||||
|
||||
|
||||
def fake_db_flavor(**updates):
|
||||
db_flavor = {
|
||||
'root_gb': 1,
|
||||
'ephemeral_gb': 1,
|
||||
'name': u'frob',
|
||||
'deleted': False,
|
||||
'created_at': datetime.datetime(2012, 1, 19, 18, 49, 30, 877329),
|
||||
'updated_at': None,
|
||||
'memory_mb': 256,
|
||||
'vcpus': 1,
|
||||
'flavorid': 1,
|
||||
'swap': 0,
|
||||
'rxtx_factor': 1.0,
|
||||
'extra_specs': {},
|
||||
'deleted_at': None,
|
||||
'vcpu_weight': None,
|
||||
'id': 7,
|
||||
'is_public': True,
|
||||
'disabled': False,
|
||||
}
|
||||
if updates:
|
||||
db_flavor.update(updates)
|
||||
return db_flavor
|
||||
|
||||
|
||||
def fake_create(newflavor):
|
||||
newflavor['flavorid'] = 1234
|
||||
newflavor["name"] = 'test'
|
||||
|
Loading…
Reference in New Issue
Block a user