PEP fixes

This commit is contained in:
Oliver Walters committed 2020-11-13 07:28:21 +11:00
1 parent f239c8f8c8
commit 362437e75e
4 files changed
+1652 -1266

No files matched your search

-4
View File
@@ -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