reviewstats: don't write 'None' if duration is unset #11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "pilou/hebdobot:reviewstats_keep_current_format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Keep the current reviewstats format: when review duration is unset/unknown, the line contains only two values separated by one tab and then EOL.
I added one test dedicated to
ReviewData
de/serialization.Another way to test/reproduce the fixed issue:
lllll : !stats
totests/datas/irc.txt
pytest tests/test_review_stats.py
I checked this update doesn't break the tests:
Testing de/serialization is a good idea, but changes are huge comparing to what was the problem don't you think ?
Note that for the first nine lines of tests/datas/reviewstats_2.csv, there are extraneous spaces at the end of lines (extraneous because there is no such lines in the current
reviewstats.csv
file).Pull request closed