mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add unit test for CompanyIndex
This commit is contained in:
parent
be96a2f7e3
commit
d1c7877713
@ -29,6 +29,12 @@ class CompanyViewTest(TestCase):
|
|||||||
|
|
||||||
self.client.login(username='username', password='password')
|
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):
|
def test_supplier_part_delete(self):
|
||||||
""" Test the SupplierPartDelete view """
|
""" Test the SupplierPartDelete view """
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
""" Unit tests for Order views (see views.py) """
|
""" Unit tests for Order views (see views.py) """
|
||||||
|
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
|
Loading…
Reference in New Issue
Block a user