From 43c552c7c64a17e14fb4540ffd97b7482bad11ce Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Wed, 26 Jun 2019 15:53:11 -0400 Subject: [PATCH] Some flake8 changes --- awx/__init__.py | 3 +-- awx/main/tests/functional/task_management/test_capacity.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/__init__.py b/awx/__init__.py index a319c020aa..8583d5bbf6 100644 --- a/awx/__init__.py +++ b/awx/__init__.py @@ -25,7 +25,6 @@ import hashlib try: import django - from django.utils.encoding import force_bytes from django.db.backends.base import schema from django.db.backends.utils import names_digest HAS_DJANGO = True @@ -41,7 +40,7 @@ if HAS_DJANGO is True: # but will support the `usedforsecurity` keyword on RHEL and Centos systems. # 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: raise RuntimeError( "Django version other than {target} detected: {current}. " diff --git a/awx/main/tests/functional/task_management/test_capacity.py b/awx/main/tests/functional/task_management/test_capacity.py index 4bcb63507c..b3be1a3a77 100644 --- a/awx/main/tests/functional/task_management/test_capacity.py +++ b/awx/main/tests/functional/task_management/test_capacity.py @@ -1,5 +1,3 @@ -import pytest - from django.test import TransactionTestCase from awx.main.models import (