extent no found api tests
This commit is contained in:
parent
4adc983198
commit
1a4e40b9d3
|
|
@ -58,9 +58,11 @@ class HTMLAPITests(InvenTreeTestCase):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_not_found(self):
|
||||
"""Test that the NotFoundView is working."""
|
||||
response = self.client.get('/api/anc')
|
||||
self.assertEqual(response.status_code, 404)
|
||||
"""Test that the NotFoundView is working with all available methods."""
|
||||
methods = ['options', 'get', 'post', 'patch', 'put', 'delete']
|
||||
for method in methods:
|
||||
response = getattr(self.client, method)('/api/anc')
|
||||
self.assertEqual(response.status_code, 404)
|
||||
|
||||
|
||||
class APITests(InvenTreeAPITestCase):
|
||||
|
|
|
|||
Loading…
Reference in New Issue