j-andrews7 / kenpompy

A simple yet comprehensive web scraper for kenpom.com.
https://kenpompy.readthedocs.io/en/latest/?badge=latest
GNU General Public License v3.0
73 stars 21 forks source link

Update to test_get_program_ratings to use dynamic verification of df shape #54

Closed esqew closed 1 year ago

esqew commented 1 year ago

Ensures we don't have to update the tuple literal annually by instead performing the verification based on the number of table rows bs4 returns. This way, the test still ensures that the logic applied for casting the program ratings table to a DataFrame doesn't include/exclude anything erroneous.