コード例 #1
0
 def build_stats(self):  # pragma: no cover
   list_stats = ListStats(
     name=self._get_name(),
     description=self.description,
     unit=self.unit,
   )
   list_stats.set_from_points(self.points)
   return (list_stats,)
コード例 #2
0
 def create_list(name, description, unit, points):
     list_stats = ListStats(
         name=name,
         description=description,
         unit=unit,
     )
     list_stats.set_from_points(points)
     # Same hacks here as create_count().
     list_stats.put()
     list_stats.key = None
     return list_stats
コード例 #3
0
ファイル: stats_test.py プロジェクト: keelerh/chrome_infra
 def create_list(name, description, unit, points):
   list_stats = ListStats(
     name=name,
     description=description,
     unit=unit,
   )
   list_stats.set_from_points(points)
   # Same hacks here as create_count().
   list_stats.put()
   list_stats.key = None
   return list_stats