Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add news grants category (usability/devEx) #6949

Merged
merged 2 commits into from
Jun 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/grants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def tech_categories():
'community',
'eth2.0',
'eth1.x',
'devEx',
'usability',
]

@staticmethod
Expand Down
32 changes: 19 additions & 13 deletions app/grants/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ def test_fetching_grant_categories_from_api(self):
['community',5],
['eth2.0',6],
['eth1.x',7],
['twitter', 8],
['reddit', 9],
['blog', 10],
['notes', 11],
['COVID19 research',12],
['COVID19 response',13]
['devEx', 8],
developerfred marked this conversation as resolved.
Show resolved Hide resolved
['usability', 9],
['twitter', 10],
['reddit', 11],
['blog', 12],
['notes', 13],
['COVID19 research',14],
['COVID19 response',15]
],
'status': 200
}
Expand All @@ -51,12 +53,14 @@ def test_retrieving_all_categories(self):
('community',5),
('eth2.0',6),
('eth1.x',7),
('twitter', 8),
('reddit',9),
('blog',10),
('notes',11),
('COVID19 research',12),
('COVID19 response',13)
('devEx',8),
('usability',9),
('twitter', 10),
('reddit',11),
('blog',12),
('notes',13),
('COVID19 research',14),
('COVID19 response',15)
]

self.assertEqual(all_categories, expected_response)
Expand All @@ -72,7 +76,9 @@ def test_retrieving_tech_categories(self):
('wallets',4),
('community',5),
('eth2.0',6),
('eth1.x',7)
('eth1.x',7),
('devEx', 8),
('usability', 9)
]

self.assertEqual(tech_categories, expected_response)
Expand Down