Skip to content

Commit

Permalink
feat: add news grants categorys (usability/devEx)
Browse files Browse the repository at this point in the history
  • Loading branch information
developerfred committed Jun 22, 2020
1 parent 2f9c152 commit 6a6f6d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
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
18 changes: 11 additions & 7 deletions app/grants/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,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 +74,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

0 comments on commit 6a6f6d5

Please sign in to comment.