Skip to content

Bug in test_nhl_roster.py #794

@SDL101

Description

@SDL101

Describe the bug
I went ahead and ran the unit tests to verify that they were functioning properly and found that the file test_nhl_roster.py failed one of the tests it was supposed to pass due to improper error handling. The error seems to be that the test expects the method player._retrieve_html_page() to return None, but instead, it's returning a list containing an HTML paragraph element ([

]). This mismatch between expected and actual outputs leads to the assertion failure.

To Reproduce
run the test_nhl_roster.py file.

Expected behavior
I expected to see both tests pass.

Desktop (please complete the following information):

  • OS: Windows 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
  • Sportsipy Version: 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions