2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

PEP fixes

This commit is contained in:
Oliver Walters 2019-08-15 21:50:42 +10:00
parent 087492faf8
commit 9f5325d61f

View File

@ -11,7 +11,6 @@ from rest_framework import status
import json import json
from .models import Build from .models import Build
from part.models import Part
from InvenTree.status_codes import BuildStatus from InvenTree.status_codes import BuildStatus
@ -78,7 +77,6 @@ class BuildTestSimple(TestCase):
self.assertEqual(build.status, BuildStatus.CANCELLED) self.assertEqual(build.status, BuildStatus.CANCELLED)
class TestBuildAPI(APITestCase): class TestBuildAPI(APITestCase):
""" """
Series of tests for the Build DRF API Series of tests for the Build DRF API
@ -199,11 +197,11 @@ class TestBuildViews(TestCase):
url = reverse('build-item-create') url = reverse('build-item-create')
# Try without a part specified # 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) self.assertEqual(response.status_code, 200)
# Try with an invalid build ID # 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) self.assertEqual(response.status_code, 200)
# Try with a valid part specified # Try with a valid part specified