From 9d60766adc9d6353f5d6ed5d8f76745973494172 Mon Sep 17 00:00:00 2001 From: Jo Hausmann <35309108+johausmann@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:35:00 +0200 Subject: [PATCH] Update test_queries.py Correct expected number of news --- covigator/tests/unit_tests/test_queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/covigator/tests/unit_tests/test_queries.py b/covigator/tests/unit_tests/test_queries.py index a7fd353..31ea27a 100644 --- a/covigator/tests/unit_tests/test_queries.py +++ b/covigator/tests/unit_tests/test_queries.py @@ -307,5 +307,5 @@ def test_get_news(self): NewsSection(message_text="bla4", message_type=NewsType.RELEASE.name)] self.session.add_all(test_news_section) news = self.queries.get_top_news() - self.assertEqual(news.shape[0], 0) + self.assertEqual(news.shape[0], 3)