From c39e092a04add6c993569ab50b059cddf732b2be Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 8 May 2018 18:16:36 -0700 Subject: [PATCH] add graphical tests --- tests/test_graphical.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 tests/test_graphical.py diff --git a/tests/test_graphical.py b/tests/test_graphical.py new file mode 100755 index 0000000..5eb9dd6 --- /dev/null +++ b/tests/test_graphical.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python + +import unittest +import util + + +class TestGui(unittest.TestCase): + def runTest(self): + # guiBrowse + util.invoke('guiBrowse', query='deck:Default') + + # guiAddCards + util.invoke('guiAddCards') + + # guiCurrentCard + # util.invoke('guiCurrentCard') + + # guiStartCardTimer + util.invoke('guiStartCardTimer') + + # guiShowQuestion + util.invoke('guiShowQuestion') + + # guiShowAnswer + util.invoke('guiShowAnswer') + + # guiAnswerCard + util.invoke('guiAnswerCard', ease=1) + + # guiDeckOverview + util.invoke('guiDeckOverview', name='Default') + + # guiDeckBrowser + util.invoke('guiDeckBrowser') + + +if __name__ == '__main__': + unittest.main()