Clean imports in code
This patch set modifies lines which are importing objects instead of modules. As per openstack import guide lines, user should import modules in a file not objects. http://docs.openstack.org/developer/hacking/#imports Change-Id: If61ea814058ba9cc2061e0949ee4e85bea7bac1c
This commit is contained in:
parent
e476fe9344
commit
c2d6d27521
@ -14,7 +14,7 @@
|
||||
# under the License.
|
||||
|
||||
import horizon
|
||||
from ironic_ui.content.ironic.panel import Ironic
|
||||
from ironic_ui.content.ironic import panel as i_panel
|
||||
from openstack_dashboard.test import helpers as test
|
||||
|
||||
|
||||
@ -23,4 +23,4 @@ class RegistrationTests(test.TestCase):
|
||||
dashboard = horizon.get_dashboard('admin')
|
||||
panel = dashboard.get_panel('ironic')
|
||||
|
||||
self.assertEqual(panel.__class__, Ironic)
|
||||
self.assertEqual(panel.__class__, i_panel.Ironic)
|
||||
|
Loading…
x
Reference in New Issue
Block a user