Fix import order in accelerator and config unit tests
Remove tox filters Change-Id: I6377230915d4c6d85c6015d7c099448f1dbbae41
This commit is contained in:
parent
4feb26d46f
commit
30600da911
@ -10,9 +10,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.accelerator import version
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.accelerator import version
|
||||
|
||||
IDENTIFIER = 'IDENTIFIER'
|
||||
EXAMPLE = {
|
||||
|
@ -10,9 +10,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.accelerator.v2 import accelerator_request as arq
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.accelerator.v2 import accelerator_request as arq
|
||||
|
||||
FAKE_ID = '0725b527-e51a-41df-ad22-adad5f4546ad'
|
||||
FAKE_RP_UUID = 'f4b7fe6c-8ab4-4914-a113-547af022935b'
|
||||
|
@ -9,11 +9,12 @@
|
||||
# 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 uuid
|
||||
|
||||
from openstack.accelerator.v2 import deployable
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.accelerator.v2 import deployable
|
||||
|
||||
EXAMPLE = {
|
||||
'uuid': uuid.uuid4(),
|
||||
|
@ -9,10 +9,11 @@
|
||||
# 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 uuid
|
||||
|
||||
from openstack.tests.unit import base
|
||||
from openstack.accelerator.v2 import device
|
||||
from openstack.tests.unit import base
|
||||
|
||||
EXAMPLE = {
|
||||
'id': '1',
|
||||
|
@ -10,9 +10,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from openstack.tests.unit import base
|
||||
|
||||
from openstack.accelerator.v2 import device_profile
|
||||
from openstack.tests.unit import base
|
||||
|
||||
|
||||
FAKE = {
|
||||
|
@ -11,9 +11,9 @@
|
||||
# under the License.
|
||||
|
||||
from openstack.accelerator.v2 import _proxy
|
||||
from openstack.accelerator.v2 import accelerator_request
|
||||
from openstack.accelerator.v2 import deployable
|
||||
from openstack.accelerator.v2 import device_profile
|
||||
from openstack.accelerator.v2 import accelerator_request
|
||||
from openstack.tests.unit import test_proxy_base as test_proxy_base
|
||||
|
||||
|
||||
|
@ -12,14 +12,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import fixtures
|
||||
|
||||
from openstack import config
|
||||
from openstack.config import cloud_region
|
||||
from openstack import exceptions
|
||||
from openstack.tests.unit.config import base
|
||||
|
||||
import fixtures
|
||||
|
||||
|
||||
class TestEnviron(base.TestCase):
|
||||
|
||||
|
@ -10,10 +10,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import requests.exceptions
|
||||
import uuid
|
||||
|
||||
from keystoneauth1 import exceptions as ks_exc
|
||||
import requests.exceptions
|
||||
|
||||
from openstack.config import cloud_region
|
||||
from openstack import connection
|
||||
|
@ -11,10 +11,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from testscenarios import load_tests_apply_scenarios as load_tests # noqa
|
||||
|
||||
import uuid
|
||||
|
||||
from testscenarios import load_tests_apply_scenarios as load_tests # noqa
|
||||
|
||||
from openstack.config import cloud_region
|
||||
from openstack import connection
|
||||
from openstack.tests import fakes
|
||||
|
2
tox.ini
2
tox.ini
@ -127,8 +127,6 @@ per-file-ignores =
|
||||
openstack/tests/unit/clustering/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/orchestration/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/identity/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/accelerator/*:H306,I100,I201,I202
|
||||
openstack/tests/unit/config/*:H306,I100,I201,I202
|
||||
|
||||
[flake8:local-plugins]
|
||||
extension =
|
||||
|
Loading…
Reference in New Issue
Block a user