mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Some flake8 changes
This commit is contained in:
@@ -25,7 +25,6 @@ import hashlib
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import django
|
import django
|
||||||
from django.utils.encoding import force_bytes
|
|
||||||
from django.db.backends.base import schema
|
from django.db.backends.base import schema
|
||||||
from django.db.backends.utils import names_digest
|
from django.db.backends.utils import names_digest
|
||||||
HAS_DJANGO = True
|
HAS_DJANGO = True
|
||||||
@@ -41,7 +40,7 @@ if HAS_DJANGO is True:
|
|||||||
# but will support the `usedforsecurity` keyword on RHEL and Centos systems.
|
# but will support the `usedforsecurity` keyword on RHEL and Centos systems.
|
||||||
|
|
||||||
# Keep an eye on https://code.djangoproject.com/ticket/28401
|
# Keep an eye on https://code.djangoproject.com/ticket/28401
|
||||||
target_version = '2.0.13'
|
target_version = '2.2.2'
|
||||||
if django.__version__ != target_version:
|
if django.__version__ != target_version:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"Django version other than {target} detected: {current}. "
|
"Django version other than {target} detected: {current}. "
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import pytest
|
|
||||||
|
|
||||||
from django.test import TransactionTestCase
|
from django.test import TransactionTestCase
|
||||||
|
|
||||||
from awx.main.models import (
|
from awx.main.models import (
|
||||||
|
|||||||
Reference in New Issue
Block a user