Fix pep8 errors

Pep8 job is broken due to recent pep8 upgrade and corresponding
pycodestyle update.

This commit fixes the following errors:
- E402 module level import not at top of file

Change-Id: I0e6c31c6e8edd6994854f98d898ee897c91dd140
This commit is contained in:
Akihiro Motoki 2018-05-02 20:25:19 +09:00
parent 36e8f3999e
commit 32397d14a8
2 changed files with 7 additions and 7 deletions

View File

@ -29,6 +29,8 @@ import sys
import django
import neutron_fwaas_dashboard.version
PROJECT = 'neutron-fwaas-dashboard'
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
@ -39,8 +41,6 @@ sys.path.insert(0, ROOT)
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'neutron_fwaas_dashboard.test.settings')
import neutron_fwaas_dashboard.version
django.setup()

View File

@ -14,17 +14,17 @@
from horizon.test.settings import * # noqa
from openstack_dashboard.test.settings import * # noqa
import openstack_dashboard.enabled
from openstack_dashboard.utils import settings
import neutron_fwaas_dashboard.enabled
# pop these keys to avoid log warnings about deprecation
# update_dashboards will populate them anyway
HORIZON_CONFIG.pop('dashboards', None)
HORIZON_CONFIG.pop('default_dashboard', None)
# Update the dashboards with neutron_fwaas_dashboard
import openstack_dashboard.enabled
from openstack_dashboard.utils import settings
import neutron_fwaas_dashboard.enabled
settings.update_dashboards(
[
openstack_dashboard.enabled,