From b315b958b065d197ae9363673e6f45c721b43aa8 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 27 Feb 2021 07:56:38 +1100 Subject: [PATCH] PEP fixes --- InvenTree/build/test_api.py | 4 ---- InvenTree/company/test_api.py | 3 --- InvenTree/label/test_api.py | 3 --- InvenTree/order/test_api.py | 2 -- InvenTree/part/test_api.py | 3 --- InvenTree/stock/test_api.py | 3 --- 6 files changed, 18 deletions(-) diff --git a/InvenTree/build/test_api.py b/InvenTree/build/test_api.py index 01ec847d95..02bcde6bb4 100644 --- a/InvenTree/build/test_api.py +++ b/InvenTree/build/test_api.py @@ -3,11 +3,7 @@ from __future__ import unicode_literals from datetime import datetime, timedelta -from rest_framework.test import APITestCase - from django.urls import reverse -from django.contrib.auth import get_user_model -from django.contrib.auth.models import Group from part.models import Part from build.models import Build diff --git a/InvenTree/company/test_api.py b/InvenTree/company/test_api.py index 36271ee64c..219a8ac019 100644 --- a/InvenTree/company/test_api.py +++ b/InvenTree/company/test_api.py @@ -1,9 +1,6 @@ -from rest_framework.test import APITestCase from rest_framework import status from django.urls import reverse -from django.contrib.auth import get_user_model -from InvenTree.helpers import addUserPermissions from InvenTree.api_tester import InvenTreeAPITestCase from .models import Company diff --git a/InvenTree/label/test_api.py b/InvenTree/label/test_api.py index dddab52de3..92e7733891 100644 --- a/InvenTree/label/test_api.py +++ b/InvenTree/label/test_api.py @@ -3,10 +3,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from rest_framework.test import APITestCase - from django.urls import reverse -from django.contrib.auth import get_user_model from InvenTree.api_tester import InvenTreeAPITestCase diff --git a/InvenTree/order/test_api.py b/InvenTree/order/test_api.py index 632b8580b2..cb92b8b384 100644 --- a/InvenTree/order/test_api.py +++ b/InvenTree/order/test_api.py @@ -4,11 +4,9 @@ Tests for the Order API from datetime import datetime, timedelta -from rest_framework.test import APITestCase from rest_framework import status from django.urls import reverse -from django.contrib.auth import get_user_model from InvenTree.api_tester import InvenTreeAPITestCase diff --git a/InvenTree/part/test_api.py b/InvenTree/part/test_api.py index 0229b2e485..d917b6ebb2 100644 --- a/InvenTree/part/test_api.py +++ b/InvenTree/part/test_api.py @@ -1,9 +1,6 @@ -from rest_framework.test import APITestCase from rest_framework import status from django.urls import reverse -from django.contrib.auth import get_user_model -from django.contrib.auth.models import Group from part.models import Part from stock.models import StockItem diff --git a/InvenTree/stock/test_api.py b/InvenTree/stock/test_api.py index b9f08423fb..17cab7ffe3 100644 --- a/InvenTree/stock/test_api.py +++ b/InvenTree/stock/test_api.py @@ -7,12 +7,9 @@ from __future__ import unicode_literals from datetime import datetime, timedelta -from rest_framework.test import APITestCase from rest_framework import status from django.urls import reverse -from django.contrib.auth import get_user_model -from InvenTree.helpers import addUserPermissions from InvenTree.status_codes import StockStatus from InvenTree.api_tester import InvenTreeAPITestCase