def _fetch_leaderboard(self, id, state, owner, tag, min_running_time):
     return self._backend.get_leaderboard_entries(
         project=self,
         ids=as_list(id),
         states=as_list(state),
         owners=as_list(owner),
         tags=as_list(tag),
         min_running_time=min_running_time)
Exemple #2
0
 def test_dict(self):
     self.assertEqual([{'a': 1}], as_list({'a': 1}))
Exemple #3
0
 def test_list(self):
     # expect
     self.assertEqual([2], as_list([2]))
Exemple #4
0
 def test_scalar(self):
     # expect
     self.assertEqual([1], as_list(1))
Exemple #5
0
 def test_none(self):
     # expect
     self.assertEqual(None, as_list(None))