From d1c7877713e33a19e84b03c2fad1abbebdea2df4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 30 Sep 2019 13:44:19 +1000 Subject: [PATCH] Add unit test for CompanyIndex --- InvenTree/company/test_views.py | 6 ++++++ InvenTree/order/test_views.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/InvenTree/company/test_views.py b/InvenTree/company/test_views.py index 84923f04b2..b9bb69e503 100644 --- a/InvenTree/company/test_views.py +++ b/InvenTree/company/test_views.py @@ -29,6 +29,12 @@ class CompanyViewTest(TestCase): self.client.login(username='username', password='password') + def test_company_index(self): + """ Test the company index """ + + response = self.client.get(reverse('company-index')) + self.assertEqual(response.status_code, 200) + def test_supplier_part_delete(self): """ Test the SupplierPartDelete view """ diff --git a/InvenTree/order/test_views.py b/InvenTree/order/test_views.py index 9ef3c80276..0bed1f8449 100644 --- a/InvenTree/order/test_views.py +++ b/InvenTree/order/test_views.py @@ -1,5 +1,8 @@ """ Unit tests for Order views (see views.py) """ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model