예제 #1
0
def index():
    players = Player.find()
    return render_template('index.html', players=players)
예제 #2
0
 def test_find(self):
     Player.create({"name": "test", "surname": "test"})
     players = Player.find()
     self.assertGreater(len(players), 0, "Players array should be greater than zero")