mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 21:38:48 +00:00
PEP fixes
This commit is contained in:
parent
b872a12131
commit
45d5667ccc
@ -6,6 +6,7 @@ from django.contrib.auth import get_user_model
|
|||||||
|
|
||||||
from .models import Part
|
from .models import Part
|
||||||
|
|
||||||
|
|
||||||
class PartViewTestCase(TestCase):
|
class PartViewTestCase(TestCase):
|
||||||
|
|
||||||
fixtures = [
|
fixtures = [
|
||||||
@ -142,7 +143,7 @@ class PartAttachmentTests(PartViewTestCase):
|
|||||||
""" test creation of an attachment for an invalid part """
|
""" test creation of an attachment for an invalid part """
|
||||||
|
|
||||||
with self.assertRaises(Part.DoesNotExist):
|
with self.assertRaises(Part.DoesNotExist):
|
||||||
response = self.client.get(reverse('part-attachment-create'), {'part': 999}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
self.client.get(reverse('part-attachment-create'), {'part': 999}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
||||||
|
|
||||||
def test_edit(self):
|
def test_edit(self):
|
||||||
""" test editing an attachment """
|
""" test editing an attachment """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user