Exemple #1
0
def test_player_id_not_a_num():
    pyball = PyBall()
    with pytest.raises(BadRequestError):
        pyball.get_player("not_an_id")
Exemple #2
0
def test_player():
    pyball = PyBall()
    return pyball.get_player(446372)
Exemple #3
0
def test_bad_player_id():
    pyball = PyBall()
    with pytest.raises(InvalidIdError):
        pyball.get_player(-1)