From 036b58ea042f7aba83ab5445d60e9c518bcf30ed Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 May 2022 21:52:49 +0200 Subject: [PATCH] update path in test --- InvenTree/InvenTree/test_api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/test_api.py b/InvenTree/InvenTree/test_api.py index fa351ebb3c..f55dfbcda2 100644 --- a/InvenTree/InvenTree/test_api.py +++ b/InvenTree/InvenTree/test_api.py @@ -98,10 +98,8 @@ class HTMLAPITests(TestCase): def test_not_found(self): """Test that the NotFoundView is working""" - url = reverse('api-404') - # Check JSON response - response = self.client.get(url, HTTP_ACCEPT='application/json') + response = self.client.get('/api/anc') self.assertEqual(response.status_code, 404)