mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
update path in test
This commit is contained in:
parent
993f6380db
commit
036b58ea04
@ -98,10 +98,8 @@ class HTMLAPITests(TestCase):
|
|||||||
|
|
||||||
def test_not_found(self):
|
def test_not_found(self):
|
||||||
"""Test that the NotFoundView is working"""
|
"""Test that the NotFoundView is working"""
|
||||||
url = reverse('api-404')
|
|
||||||
|
|
||||||
# Check JSON response
|
response = self.client.get('/api/anc')
|
||||||
response = self.client.get(url, HTTP_ACCEPT='application/json')
|
|
||||||
self.assertEqual(response.status_code, 404)
|
self.assertEqual(response.status_code, 404)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user