faba701251
* Add endpoint to retrieve collection stats report * Create separate test for statistics * Add test for collectionStats * Fixed typo * Change endpoint name to use a verb * Change name to getCollectionStatsHTML
22 lines
446 B
Python
22 lines
446 B
Python
#!/usr/bin/env python
|
|
|
|
import os
|
|
import tempfile
|
|
import unittest
|
|
import util
|
|
|
|
|
|
class TestMisc(unittest.TestCase):
|
|
def runTest(self):
|
|
# getNumCardsReviewedToday
|
|
result = util.invoke('getNumCardsReviewedToday')
|
|
self.assertIsInstance(result, int)
|
|
|
|
# collectionStats
|
|
result = util.invoke('getCollectionStatsHTML')
|
|
self.assertIsInstance(result, str)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|