Merge "Clean imports in code"

This commit is contained in:
Jenkins 2016-09-15 07:33:33 +00:00 committed by Gerrit Code Review
commit bd52d0f7b0
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import OrderedDict
import collections
import json
from django.conf import settings
@ -77,7 +77,7 @@ class OverviewTab(tabs.Tab):
if id == service_data['?']['status']:
status_name = name
detail_info = OrderedDict([
detail_info = collections.OrderedDict([
('Name', getattr(service_data, 'name', '')),
('ID', service_data['?']['id']),
('Type', tables.get_service_type(service_data) or 'Unknown'),

View File

@ -29,7 +29,7 @@ from oslo_log import handlers
from oslo_log import log
from selenium.common import exceptions as exc
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common import action_chains
import selenium.webdriver.common.by as by
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support import ui
@ -323,7 +323,7 @@ class UITestCase(BaseDeps):
'button.ajax-inline-edit')
# hover to make pencil visible
hover = ActionChains(self.driver).move_to_element(el_td)
hover = action_chains.ActionChains(self.driver).move_to_element(el_td)
hover.perform()
el_pencil.click()