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
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from openstack.accelerator import version
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.accelerator import version
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from openstack.accelerator.v2 import accelerator_request as arq
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.accelerator.v2 import accelerator_request as arq
|
|
||||||
|
|
||||||
FAKE_ID = '0725b527-e51a-41df-ad22-adad5f4546ad'
|
FAKE_ID = '0725b527-e51a-41df-ad22-adad5f4546ad'
|
||||||
FAKE_RP_UUID = 'f4b7fe6c-8ab4-4914-a113-547af022935b'
|
FAKE_RP_UUID = 'f4b7fe6c-8ab4-4914-a113-547af022935b'
|
||||||
|
@ -9,11 +9,12 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
from openstack.accelerator.v2 import deployable
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.accelerator.v2 import deployable
|
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'uuid': uuid.uuid4(),
|
'uuid': uuid.uuid4(),
|
||||||
|
@ -9,10 +9,11 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
from openstack.accelerator.v2 import device
|
from openstack.accelerator.v2 import device
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'id': '1',
|
'id': '1',
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
|
|
||||||
from openstack.accelerator.v2 import device_profile
|
from openstack.accelerator.v2 import device_profile
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
FAKE = {
|
FAKE = {
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.accelerator.v2 import _proxy
|
from openstack.accelerator.v2 import _proxy
|
||||||
|
from openstack.accelerator.v2 import accelerator_request
|
||||||
from openstack.accelerator.v2 import deployable
|
from openstack.accelerator.v2 import deployable
|
||||||
from openstack.accelerator.v2 import device_profile
|
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
|
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
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import fixtures
|
||||||
|
|
||||||
from openstack import config
|
from openstack import config
|
||||||
from openstack.config import cloud_region
|
from openstack.config import cloud_region
|
||||||
from openstack import exceptions
|
from openstack import exceptions
|
||||||
from openstack.tests.unit.config import base
|
from openstack.tests.unit.config import base
|
||||||
|
|
||||||
import fixtures
|
|
||||||
|
|
||||||
|
|
||||||
class TestEnviron(base.TestCase):
|
class TestEnviron(base.TestCase):
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import requests.exceptions
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from keystoneauth1 import exceptions as ks_exc
|
from keystoneauth1 import exceptions as ks_exc
|
||||||
|
import requests.exceptions
|
||||||
|
|
||||||
from openstack.config import cloud_region
|
from openstack.config import cloud_region
|
||||||
from openstack import connection
|
from openstack import connection
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from testscenarios import load_tests_apply_scenarios as load_tests # noqa
|
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
from testscenarios import load_tests_apply_scenarios as load_tests # noqa
|
||||||
|
|
||||||
from openstack.config import cloud_region
|
from openstack.config import cloud_region
|
||||||
from openstack import connection
|
from openstack import connection
|
||||||
from openstack.tests import fakes
|
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/clustering/*:H306,I100,I201,I202
|
||||||
openstack/tests/unit/orchestration/*:H306,I100,I201,I202
|
openstack/tests/unit/orchestration/*:H306,I100,I201,I202
|
||||||
openstack/tests/unit/identity/*: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]
|
[flake8:local-plugins]
|
||||||
extension =
|
extension =
|
||||||
|
Loading…
Reference in New Issue
Block a user