anki-connect/tests/test_stats.py

22 lines
446 B
Python
Raw Normal View History

#!/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()