From 9f5325d61f72046abffcc0bf3dbcdacc1c1c0e3c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 15 Aug 2019 21:50:42 +1000 Subject: [PATCH] PEP fixes --- InvenTree/build/tests.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/InvenTree/build/tests.py b/InvenTree/build/tests.py index 0092cab091..06eafa41ab 100644 --- a/InvenTree/build/tests.py +++ b/InvenTree/build/tests.py @@ -11,7 +11,6 @@ from rest_framework import status import json from .models import Build -from part.models import Part from InvenTree.status_codes import BuildStatus @@ -78,7 +77,6 @@ class BuildTestSimple(TestCase): self.assertEqual(build.status, BuildStatus.CANCELLED) - class TestBuildAPI(APITestCase): """ Series of tests for the Build DRF API @@ -199,11 +197,11 @@ class TestBuildViews(TestCase): url = reverse('build-item-create') # Try without a part specified - response = self.client.get(url, {'build': 1,}, HTTP_X_REQUESTED_WITH='XMLHttpRequest') + response = self.client.get(url, {'build': 1}, HTTP_X_REQUESTED_WITH='XMLHttpRequest') self.assertEqual(response.status_code, 200) - + # Try with an invalid build ID - response = self.client.get(url, {'build': 9999,}, HTTP_X_REQUESTED_WITH='XMLHttpRequest') + response = self.client.get(url, {'build': 9999}, HTTP_X_REQUESTED_WITH='XMLHttpRequest') self.assertEqual(response.status_code, 200) # Try with a valid part specified