Adds: simple ui tests for exporter and importer widgets

This commit is contained in:
Olivier Keshavjee 2017-11-22 11:27:21 +01:00
parent f945387066
commit 43c82cb3c9
4 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests for exporters, ui part."""

View file

@ -0,0 +1,27 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests for settingsWindow"""
def test_loadExportWiget(MWSampleProject):
"""
Simply tests that export widget loads properly.
"""
MW = MWSampleProject
# Loading from mainWindow
MW.doCompile()
E = MW.dialog
assert E.isVisible()
E.hide()
# Load exporter manager
E.openManager()
EM = E.dialog
assert EM.isVisible()
EM.hide()
EM.close()
E.close()
#FIXME: test significant stuff

View file

@ -0,0 +1,4 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests for importers, ui part."""

View file

@ -0,0 +1,19 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests for settingsWindow"""
def test_loadImportWiget(MWSampleProject):
"""
Simply tests that import widget loads properly.
"""
MW = MWSampleProject
# Loading from mainWindow
MW.doImport()
I = MW.dialog
assert I.isVisible()
I.hide()
I.close()
#FIXME: test significant stuff