update path in test

This commit is contained in:
Matthias 2022-05-11 21:52:49 +02:00
parent 993f6380db
commit 036b58ea04
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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)