def test_top_n_projects_empty_when_none_within_k_days(self):
     l = cache.get_top_n_projects_k_days(1, 5)
     assert l == []
 def test_get_top_n_projects_k_days_returns_empty_list_when_no_data(self):
     l = cache.get_top_n_projects_k_days(1, 10)
     assert l == []
 def test_top_n_projects_returned_when_within_k_days(self):
     l = cache.get_top_n_projects_k_days(1, 6)
     assert l[0]['name'] == self.pr.name