mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 08:54:34 +12:00
Adds: simple ui tests for exporter and importer widgets
This commit is contained in:
parent
f945387066
commit
43c82cb3c9
4
manuskript/tests/ui/exporters/__init__.py
Normal file
4
manuskript/tests/ui/exporters/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# --!-- coding: utf8 --!--
|
||||||
|
|
||||||
|
"""Tests for exporters, ui part."""
|
27
manuskript/tests/ui/exporters/test_exporters.py
Normal file
27
manuskript/tests/ui/exporters/test_exporters.py
Normal 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
|
4
manuskript/tests/ui/importers/__init__.py
Normal file
4
manuskript/tests/ui/importers/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# --!-- coding: utf8 --!--
|
||||||
|
|
||||||
|
"""Tests for importers, ui part."""
|
19
manuskript/tests/ui/importers/test_importers.py
Normal file
19
manuskript/tests/ui/importers/test_importers.py
Normal 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
|
Loading…
Reference in a new issue