__ test_espn_wnba_draft_raw_returns_dict _____________________
@skip_if_no_live
def test_espn_wnba_draft_raw_returns_dict():
> raw = espn_wnba_draft(season=2024, raw=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/wnba/test_wnba_draft.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sportsdataverse/_common_espn.py:1493: in wrapper
result = bound(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
sportsdataverse/_common_espn.py:166: in _site_v2_draft
return _get(f"{_SITE_V2}/{sport}/{league}/draft", **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
url = 'https://site.api.espn.com/apis/site/v2/sports/basketball/wnba/draft'
params = None, kwargs = {'raw': True, 'season': 2024}, clean = {}
def _get(url: str, params: Optional[dict] = None, **kwargs) -> Dict:
"""GET ``url`` as JSON. Returns ``{}`` on failure. Strips ``None`` params."""
clean = {k: v for k, v in (params or {}).items() if v is not None}
> resp = download(url=url, params=clean, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: download() got an unexpected keyword argument 'season'. Did you mean 'session'?
sportsdataverse/_common_espn.py:52: TypeError
=============================== warnings summary ===============================
tests/test_espn_live.py: 5 warnings
tests/test_espn_universal_parsers.py: 192 warnings
/home/runner/work/sportsdataverse-py/sportsdataverse-py/sportsdataverse/_common_espn_parsers.py:104: Pandas4Warning: For backward compatibility, 'str' dtypes are included by select_dtypes when 'object' dtype is specified. This behavior is deprecated and will be removed in a future version. Explicitly pass 'str' to `include` to select them, or to `exclude` to remove them and silence this warning.
See https://pandas.pydata.org/docs/user_guide/migration-3-strings.html#string-migration-select-dtypes for details on how to write code that works with pandas 2 and 3.
for col in df.select_dtypes(include="object").columns:
tests/test_espn_universal_parsers.py::test_summary_dispatcher_returns_full_section_dict_for_every_league[summary_nfl]
tests/test_espn_universal_parsers.py::test_summary_boxscore_team_works_across_leagues[summary_nfl]
/home/runner/work/sportsdataverse-py/sportsdataverse-py/sportsdataverse/_common_espn_parsers.py:110: Pandas4Warning: For backward compatibility, 'str' dtypes are included by select_dtypes when 'object' dtype is specified. This behavior is deprecated and will be removed in a future version. Explicitly pass 'str' to `include` to select them, or to `exclude` to remove them and silence this warning.
See https://pandas.pydata.org/docs/user_guide/migration-3-strings.html#string-migration-select-dtypes for details on how to write code that works with pandas 2 and 3.
for col in df.select_dtypes(include="object").columns:
tests/test_nhl_api_web_parsers.py::test_parse_nhl_web_right_rail_returns_six_section_dict
tests/test_nhl_api_web_parsers.py::test_parse_nhl_web_right_rail_with_section_returns_single_frame
/home/runner/work/sportsdataverse-py/sportsdataverse-py/sportsdataverse/nhl/nhl_api_web_parsers.py:61: Pandas4Warning: For backward compatibility, 'str' dtypes are included by select_dtypes when 'object' dtype is specified. This behavior is deprecated and will be removed in a future version. Explicitly pass 'str' to `include` to select them, or to `exclude` to remove them and silence this warning.
See https://pandas.pydata.org/docs/user_guide/migration-3-strings.html#string-migration-select-dtypes for details on how to write code that works with pandas 2 and 3.
for col in df2.select_dtypes(include="object").columns:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====== 5 failed, 398 passed, 1 xfailed, 201 warnings in 108.40s (0:01:48) ======
Scheduled live-tests run on 2026-05-25 failed.
Run: https://github.com/sportsdataverse/sportsdataverse-py/actions/runs/26408662551
Last 4KB of pytest output
Likely causes:
Resolve by: fixing the parser / wrapper, then closing this issue. The next cron run that goes green will leave the issue closed.