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