Skip to content

Commit

Permalink
feat: add news grants categorys (usability/devEx) (#6949)
Browse files Browse the repository at this point in the history
  • Loading branch information
developerfred authored Jun 26, 2020
1 parent de3cad7 commit a8a64da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 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
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],
['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

0 comments on commit a8a64da

Please sign in to comment.