Archived
1
0
This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
Fourmi/tests/test_gui.py
2014-06-12 13:38:06 +02:00

30 lines
726 B
Python

import unittest
from GUI import gui
class TestGUI(unittest.TestCase):
def setUp(self):
pass
def test_empty_attributes(self):
test_gui = gui.GUI(None)
test_gui.configurator = gui.ConfigImporter('../GUI/gui.cfg')
test_gui.window.after(10, test_gui.window.destroy)
test_gui.run()
test_gui.prepare_search()
def test_no_configurations(self):
test_gui = gui.GUI(None)
test_gui.configurator = gui.ConfigImporter(None)
test_gui.finish_with_search = True
test_gui.variables= {'substance':''}
test_gui.window.after(10, test_gui.prepare_search)
test_gui.window.after(10, test_gui.window.destroy)
test_gui.run()