From 8d54ad2a83234f775742a06d9316e63a7a972f6c Mon Sep 17 00:00:00 2001 From: owocki Date: Sun, 15 Mar 2020 11:04:44 -0600 Subject: [PATCH] fixes tests --- app/grants/models.py | 2 +- app/grants/tests/test_views.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/grants/models.py b/app/grants/models.py index 613533d0ac4..f29b986b6bb 100644 --- a/app/grants/models.py +++ b/app/grants/models.py @@ -75,7 +75,7 @@ class GrantCategory(SuperModel): def all_categories(): all_tech_categories = GrantCategory.tech_categories() filtered_media_categories = [category for category in GrantCategory.media_categories() if category not in all_tech_categories] - return all_tech_categories + filtered_media_categories + GrantCategory.media_categories() + return all_tech_categories + filtered_media_categories + GrantCategory.health_categories() @staticmethod def tech_categories(): diff --git a/app/grants/tests/test_views.py b/app/grants/tests/test_views.py index 8ddd1ddd514..82bb013f7c4 100644 --- a/app/grants/tests/test_views.py +++ b/app/grants/tests/test_views.py @@ -30,7 +30,9 @@ def test_fetching_grant_categories_from_api(self): ['twitter', 8], ['reddit', 9], ['blog', 10], - ['notes', 11] + ['notes', 11], + ['COVID19 research',12], + ['COVID19 response',13] ], 'status': 200 } @@ -52,7 +54,9 @@ def test_retrieving_all_categories(self): ('twitter', 8), ('reddit',9), ('blog',10), - ('notes',11) + ('notes',11), + ('COVID19 research',12), + ('COVID19 response',13) ] self.assertEqual(all_categories, expected_response)