from review.stats import ReviewData def test_reviewdata(): for filename in ("reviewstats_1.csv", "reviewstats_2.csv"): with open(f"tests/datas/{filename}", "r") as review: for line in review: assert line == str(ReviewData.load(line))