Ejemplo n.º 1
0
 def test_roster(self):
     ok_(get_roster("m-baskbl", 2015) != [])
Ejemplo n.º 2
0
 def test_roster(self):
     ok_(get_roster("M_Basketball", 2015) != [])
Ejemplo n.º 3
0
 def test_player_softball(self):
     # 19 players on the 2013 softball team
     eq_(len(get_roster("w-softbl", 2013)), 19)
Ejemplo n.º 4
0
def return_roster(sport_id, year):
    roster = athletes.get_roster(sport_id, year)
    roster_json = [athlete.__dict__ for athlete in roster]
    return jsonify({"athletes": roster_json})