Given the small and ad hoc nature of the scripts developed for this project a full, formal test suite has not been written.
Scripts were developed iteratively, making use of suitably Useful forums, with interim results and final outputs manually reviewed.
M811 15K Organisation and scope (Tutor - Alan Watson) is good for testing because small enough to manually review, and contains multiple postings on one day in varying quantities. See Sample posts data.
M811 15K Tutor group (Mark Slaymaker) is good for testing because it has no posts.
M811 15K Organisation and scope (Tutor - Alan Watson) forum_filter_posts.csv
PostID,UserID,Created 11923604,769139,2015-11-09 11928481,753224,2015-11-10 12147618,720906,2015-11-28 12183408,775978,2015-12-02 12236914,773922,2015-12-08 12237065,773922,2015-12-08 12266691,775978,2015-12-12 12325433,775978,2015-12-21 12333636,733659,2015-12-24 13042838,775978,2016-03-14 13045356,733659,2016-03-14 13182646,775978,2016-03-31 13182099,760136,2016-03-31 13182893,775978,2016-03-31 13188891,733659,2016-04-01 13194762,760136,2016-04-01 13213578,775978,2016-04-04
All scripts have been successfully evaluated against:
Should you with to pursue a more formal test suite, see scripts/test_demo.py
for:
is_current()
function by adding doctest statements to the function's docstring.test_is_current()
, that also tests is_current()
.