We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d00b7 commit 043bd76Copy full SHA for 043bd76
web/tests/test_views.py
@@ -242,3 +242,12 @@ def test_robots_txt_post_disallowed(self):
242
response = self.client.post("/robots.txt")
243
244
self.assertEqual(HTTPStatus.METHOD_NOT_ALLOWED, response.status_code)
245
+
246
+ def test_api_not_found(self):
247
+ """Test if an invalid API call returns a 404 error"""
248
+ url = "http://localhost:8000/api/shared/config/config.env/"
249
+ response = self.client.get(url)
250
251
+ self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND)
252
253
0 commit comments