Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. http://docs.openstack.org/developer/hacking/#imports Change-Id: I77494f0ad9109a62ba46280eab9ab79b7068fa84
This commit is contained in:
parent
fd48c2d0e5
commit
535866b090
@ -13,10 +13,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
from magnum_ui.content.cluster_templates.views import IndexView
|
from magnum_ui.content.cluster_templates import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^[0-9a-f\-]{36}$', IndexView.as_view(), name='detail'),
|
url(r'^[0-9a-f\-]{36}$', views.IndexView.as_view(), name='detail'),
|
||||||
url(r'^$', IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
]
|
]
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
from magnum_ui.content.clusters.views import IndexView
|
from magnum_ui.content.clusters import views
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^[0-9a-f\-]{36}$', IndexView.as_view(), name='detail'),
|
url(r'^[0-9a-f\-]{36}$', views.IndexView.as_view(), name='detail'),
|
||||||
url(r'^$', IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
]
|
]
|
||||||
|
@ -18,9 +18,9 @@ import mock
|
|||||||
from magnum_ui.api.rest import magnum
|
from magnum_ui.api.rest import magnum
|
||||||
from magnum_ui.test import test_data
|
from magnum_ui.test import test_data
|
||||||
from openstack_dashboard.test import helpers as test
|
from openstack_dashboard.test import helpers as test
|
||||||
from openstack_dashboard.test.test_data.utils import TestData
|
from openstack_dashboard.test.test_data import utils
|
||||||
|
|
||||||
TEST = TestData(test_data.data)
|
TEST = utils.TestData(test_data.data)
|
||||||
|
|
||||||
|
|
||||||
class MagnumRestTestCase(test.TestCase):
|
class MagnumRestTestCase(test.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user