From c0ab93b2a9d1664503cd686763e087b3641b5c1a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Feb 2022 05:35:06 +0100 Subject: [PATCH] remove dead code --- InvenTree/company/test_views.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/InvenTree/company/test_views.py b/InvenTree/company/test_views.py index 89968081c3..97bf884112 100644 --- a/InvenTree/company/test_views.py +++ b/InvenTree/company/test_views.py @@ -49,28 +49,6 @@ class CompanyViewTestBase(TestCase): self.client.login(username='username', password='password') - def post(self, url, data, valid=None): - """ - POST against this form and return the response (as a JSON object) - """ - - response = self.client.post(url, data, HTTP_X_REQUESTED_WITH='XMLHttpRequest') - - self.assertEqual(response.status_code, 200) - - json_data = json.loads(response.content) - - # If a particular status code is required - if valid is not None: - if valid: - self.assertEqual(json_data['form_valid'], True) - else: - self.assertEqual(json_data['form_valid'], False) - - form_errors = json.loads(json_data['form_errors']) - - return json_data, form_errors - class CompanyViewTest(CompanyViewTestBase): """