From c1faaa10f1cc30e642d6fb57aceedc68932a7027 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Tue, 27 Jan 2015 11:45:55 +0800 Subject: [PATCH] adjust import group order in db2 ut code The recommended import group order is builtins, third party then project own modules. However hacking can only detect mixed group, but cannot detect disordered groups. This patch adjust import group order in ceilometer/tests/storage/test_impl_db2.py to follow common style. Change-Id: I6bf12dfb5d748349c0b646ffcc58468b42ef358c ref: http://docs.openstack.org/developer/hacking/#import-order-template --- ceilometer/tests/storage/test_impl_db2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ceilometer/tests/storage/test_impl_db2.py b/ceilometer/tests/storage/test_impl_db2.py index 15d3cd2ea..9e7911c28 100644 --- a/ceilometer/tests/storage/test_impl_db2.py +++ b/ceilometer/tests/storage/test_impl_db2.py @@ -23,17 +23,17 @@ """ +import bson +import mock +from oslo_config import cfg +from oslo_utils import timeutils + from ceilometer.alarm.storage import impl_db2 as impl_db2_alarm from ceilometer.event.storage import impl_db2 as impl_db2_event from ceilometer.storage import impl_db2 from ceilometer.storage.mongo import utils as pymongo_utils from ceilometer.tests import base as test_base -import bson -import mock -from oslo_config import cfg -from oslo_utils import timeutils - class CapabilitiesTest(test_base.BaseTestCase): # Check the returned capabilities list, which is specific to each DB