mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
f239c8f8c8
commit
362437e75e
@ -73,13 +73,11 @@ class CompanyViewTestBase(TestCase):
|
|||||||
return json_data, form_errors
|
return json_data, form_errors
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SupplierPartViewTests(CompanyViewTestBase):
|
class SupplierPartViewTests(CompanyViewTestBase):
|
||||||
"""
|
"""
|
||||||
Tests for the SupplierPart views.
|
Tests for the SupplierPart views.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def test_supplier_part_create(self):
|
def test_supplier_part_create(self):
|
||||||
"""
|
"""
|
||||||
Test the SupplierPartCreate view.
|
Test the SupplierPartCreate view.
|
||||||
@ -193,8 +191,6 @@ class CompanyViewTest(CompanyViewTestBase):
|
|||||||
Test the view for creating a company
|
Test the view for creating a company
|
||||||
"""
|
"""
|
||||||
|
|
||||||
url = reverse('company-create')
|
|
||||||
|
|
||||||
# Check that different company types return different form titles
|
# Check that different company types return different form titles
|
||||||
response = self.client.get(reverse('supplier-create'), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
response = self.client.get(reverse('supplier-create'), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
||||||
self.assertContains(response, 'Create new Supplier')
|
self.assertContains(response, 'Create new Supplier')
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user