From bc8ec0257e4ecb350a2d961328a3341068a07c2e Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sat, 31 Aug 2024 10:08:22 +0200 Subject: [PATCH] Update unknown request tests --- .../news/collection/tests/endpoints/rule/detail/tests.py | 2 +- .../news/core/tests/endpoints/category/detail/tests.py | 2 +- src/newsreader/news/core/tests/endpoints/post/detail/tests.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/newsreader/news/collection/tests/endpoints/rule/detail/tests.py b/src/newsreader/news/collection/tests/endpoints/rule/detail/tests.py index 0e1bc7e..9652053 100644 --- a/src/newsreader/news/collection/tests/endpoints/rule/detail/tests.py +++ b/src/newsreader/news/collection/tests/endpoints/rule/detail/tests.py @@ -38,7 +38,7 @@ class CollectionRuleDetailViewTestCase(TestCase): data = response.json() self.assertEquals(response.status_code, 404) - self.assertEquals(data["detail"], "Not found.") + self.assertEquals(data["detail"], "No Post matches the given query.") def test_post(self): rule = FeedFactory(user=self.user) diff --git a/src/newsreader/news/core/tests/endpoints/category/detail/tests.py b/src/newsreader/news/core/tests/endpoints/category/detail/tests.py index 1f42a20..7fd3e1c 100644 --- a/src/newsreader/news/core/tests/endpoints/category/detail/tests.py +++ b/src/newsreader/news/core/tests/endpoints/category/detail/tests.py @@ -32,7 +32,7 @@ class CategoryDetailViewTestCase(TestCase): data = response.json() self.assertEquals(response.status_code, 404) - self.assertEquals(data["detail"], "Not found.") + self.assertEquals(data["detail"], "No Category matches the given query.") def test_post(self): category = CategoryFactory(user=self.user) diff --git a/src/newsreader/news/core/tests/endpoints/post/detail/tests.py b/src/newsreader/news/core/tests/endpoints/post/detail/tests.py index 295f92f..e9a9faa 100644 --- a/src/newsreader/news/core/tests/endpoints/post/detail/tests.py +++ b/src/newsreader/news/core/tests/endpoints/post/detail/tests.py @@ -38,7 +38,7 @@ class PostDetailViewTestCase(TestCase): data = response.json() self.assertEqual(response.status_code, 404) - self.assertEqual(data["detail"], "Not found.") + self.assertEqual(data["detail"], "No Post matches the given query.") def test_post(self): rule = FeedFactory(user=self.user, category=CategoryFactory(user=self.user))