hebdobot/tests/test_review_data.py

9 lines
276 B
Python
Raw Permalink Normal View History

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))