Open kevinhayden1 opened 10 months ago
Took a look at your issue. As with most recent issues here, these cases are resolved by my fork at https://github.com/davidjkrause/sportsipy
The only case which fails is the NFL case, and it's because the URL for the 2023 page does not yet have a team list, but you can get a pass by forcing the year to 2022, like
teams = NFLTeams(year=2022)
Output on the slightly modified test.py (adding import unittest and changing NFL year) looks like:
python test.py -v
test_fb_team_goals (__main__.SportsipyTests) ... ok
test_mlb_game_dataframe (__main__.SportsipyTests) ... ok
test_nba_team_names_and_abbreviations (__main__.SportsipyTests) ... ok
test_ncaab_game_dates (__main__.SportsipyTests) ... ok
test_ncaaf_away_interceptions (__main__.SportsipyTests) ... ok
test_nfl_team_information (__main__.SportsipyTests) ... ok
test_nhl_teams_2018 (__main__.SportsipyTests) ... ok
----------------------------------------------------------------------
Ran 7 tests in 4.103s
OK
This particular project does not seem maintained right now, but my fork is mostly working at this point, so feel free to use it as an alternative.
Describe the bug Currently, Sportsipy is not working on this branch for even the basic examples on the README.
To Reproduce The contents of this Unit Test:
Expected behavior The expected behavior is for prints, equality found or asserts to be true for the provided test. Currently, these are not returning the expected results.
Screenshots![Screenshot 2023-08-14 122003](https://github.com/roclark/sportsipy/assets/77022804/3f8f44c9-cd44-42c3-b4ff-0f5cdb1f73d9)
As seen in the screenshot, what I have also noticed in additional NBA statistics specific testing, is that the first line is interacting with the data on sports-references.com but nothing is being returned.
Desktop (please complete the following information):
Additional context Is the issue possibly related to URI changes on sports-references.com? Is there a simple fix or is this software being made obsolete in favor of a new project of similar design? If needed and relevant, I can provide more tests that show active interaction with the source website but do not reveal results. I appreciate any suggestions or acknowledgement on how to proceed.