anki-connect/tests/test_stats.py
Scott Noyes faba701251
Collection stats (#166)
* 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
2020-05-03 12:06:43 -07:00

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