def index(): players = Player.find() return render_template('index.html', players=players)
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")