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