Example #1
0
 def test_filter_by_patch_679_only(self):
     game1 = fake_game(match_id=2, start_time=1390975100)
     game2 = fake_game(match_id=3, start_time=1390975201)
     self.session.add_all([game1, game2])
     result = orm.filter_by_patch(self.session, start='6.79',
                                  stop='6.80').all()
     self.assertEqual(len(result), 1)
Example #2
0
 def test_filter_by_patch_679_only(self):
     game1 = fake_game(match_id=2, start_time=1390975100)
     game2 = fake_game(match_id=3, start_time=1390975201)
     self.session.add_all([game1, game2])
     result = orm.filter_by_patch(self.session, start='6.79',
                                  stop='6.80').all()
     self.assertEqual(len(result), 1)
Example #3
0
 def test_filter_by_patch(self):
     # just after 6.8
     game = fake_game(match_id=2, start_time=1390975201)
     self.session.add(game)
     self.assertIs(orm.filter_by_patch(self.session).first(), game)
     self.assertEqual(len(orm.filter_by_patch(self.session).all()), 1)
Example #4
0
 def test_filter_by_patch(self):
     # just after 6.8
     game = fake_game(match_id=2, start_time=1390975201)
     self.session.add(game)
     self.assertIs(orm.filter_by_patch(self.session).first(), game)
     self.assertEqual(len(orm.filter_by_patch(self.session).all()), 1)