diff --git a/pyball/models/config/position.py b/pyball/models/config/position.py index 4183893..619e4e4 100644 --- a/pyball/models/config/position.py +++ b/pyball/models/config/position.py @@ -13,3 +13,4 @@ class Position: fielder: bool = None displayName: str = None formalName: str = None # noqa: E701 + gamePosition: bool = None diff --git a/pyball/models/team/coach.py b/pyball/models/team/coach.py index ee65376..4908a75 100644 --- a/pyball/models/team/coach.py +++ b/pyball/models/team/coach.py @@ -10,6 +10,7 @@ class Coach: jerseyNumber: str = None job: str = None jobId: str = None + title: str = None def __post_init__(self): self.person = Person(**self.person) diff --git a/test/test_draft.py b/test/test_draft.py index 1cd8141..925ea06 100644 --- a/test/test_draft.py +++ b/test/test_draft.py @@ -9,8 +9,7 @@ from pyball.models.generic_team import Team from pyball.models import Person -from pyball.exceptions import BadRequestError, NotFound -from pyball.constants import BASE_URL +from pyball.exceptions import BadRequestError @pytest.fixture(scope='module') @@ -59,15 +58,3 @@ def test_bad_draft_year(): pyball = PyBall() with pytest.raises(BadRequestError): pyball.get_draft_by_year("BadYear") - - -def test_get_not_found_draft(): - pyball = PyBall() - with pytest.raises(NotFound): - pyball._get("{}/draft".format(BASE_URL)) - - -def test_get_not_found_draft_prospects(): - pyball = PyBall() - with pytest.raises(NotFound): - pyball._get("{}/draft/prospects".format(BASE_URL))