Fix import order in compute unit tests
Change-Id: I775d7d37d543e306cd870b56a071f8afbbdd5bb6
This commit is contained in:
parent
d1676c24d3
commit
c49bbafb89
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute import version
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute import version
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import availability_zone as az
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import availability_zone as az
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
BASIC_EXAMPLE = {
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import extension
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import extension
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from keystoneauth1 import adapter
|
||||
|
||||
from openstack.compute.v2 import flavor
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import flavor
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
BASIC_EXAMPLE = {
|
||||
|
|
|
@ -9,15 +9,16 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
from unittest import mock
|
||||
|
||||
from keystoneauth1 import adapter
|
||||
|
||||
from openstack.compute.v2 import hypervisor
|
||||
from openstack import exceptions
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import hypervisor
|
||||
|
||||
EXAMPLE = {
|
||||
"cpu_info": {
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import image
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import image
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import keypair
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import keypair
|
||||
|
||||
EXAMPLE = {
|
||||
'created_at': 'some_time',
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from openstack.compute.v2 import _proxy
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import server_diagnostics
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import server_diagnostics
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import server_group
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import server_group
|
||||
|
||||
EXAMPLE = {
|
||||
'id': 'IDENTIFIER',
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import server_interface
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import server_interface
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
|
|
@ -14,9 +14,9 @@ from unittest import mock
|
|||
|
||||
from keystoneauth1 import adapter
|
||||
|
||||
from openstack.compute.v2 import server_remote_console
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import server_remote_console
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
from unittest import mock
|
||||
|
||||
from openstack import exceptions
|
||||
from openstack.compute.v2 import service
|
||||
from openstack import exceptions
|
||||
from openstack.tests.unit import base
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.compute.v2 import volume_attachment
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.compute.v2 import volume_attachment
|
||||
|
||||
EXAMPLE = {
|
||||
'device': '1',
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -132,7 +132,6 @@ per-file-ignores =
|
|||
openstack/tests/unit/workflow/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/message/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/load_balancer/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/compute/*:H306,I100,I201,I202
|
||||
|
||||
[flake8:local-plugins]
|
||||
extension =
|
||||
|
|
Loading…
Reference in New Issue