DistrictDataLabs / baleen

An automated ingestion service for blogs to construct a corpus for NLP research.
MIT License
86 stars 38 forks source link

Additional tests for export #63

Closed will2041 closed 8 years ago

will2041 commented 8 years ago

Bumps the export code coverage from 36% to 86%. I banged my head against the wall for a really long time on the posts iterator failing due to a missing .rewind() method buried deep in the no_cache() version of the Mongo query set. Turns out that the Mongo mock doesn't have that functionality, so of course it failed. I opted to just mock the posts() method in our stuff to get around this. If we can sort out the Mongo mock, test coverage can increase to more like 95%.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+4.7%) to 64.392% when pulling 4de37c3ca0eac36552f64c0518e7419f96fec0f8 on will2041:develop into 3df6b7c1dec2fc3ffa8bbbba9e4bcd2bd366b56c on bbengfort:develop.