'''
Created on Mar 10, 2015

@author: kent
'''
from tempfile import mkdtemp
import pysumo
from pySUMOQt import MainWindow
import shutil

"""
Steps:
1. Open pySUMO
2. Open a new Ontology named "Mondial"
3. Open a remote ontology named "Mondial" at location: http://sigmakee.cvs.sourceforge.net/viewvc/sigmakee/KBs/mondial.kif
4. Close the ontology named "Mondial" with save and reopen it as local file.
5. Add Text Editor Widget
6. Add Documentation Widget
7. Add Graph Widget
8. Add Hierarchy Widget
9. Reorder Widgets
10. Make a print preview of the ontology "Mondial" from the Text Editor Widget
10a. Delete the Text Editor Widget
11. Make a print preview of the ontology "Mondial" from the Graph Widget
11a. Add a node and a relation in Graph widget
11b. Delete the Graph Widget
12. Try to update the ontology "Mondial"
13. Open ontology properties dialog for "Mondial" and then close it.
14. Open Option Dialog and then close it
15. Revert the ontology "Mondial"
16. Quit pySUMO
"""
if __name__ == "__main__":
    tmpdir = mkdtemp()
    pysumo.CONFIG_PATH = tmpdir
    MainWindow.main()
#    MainWindow.main()
    shutil.rmtree(tmpdir, ignore_errors=True)

'''
Created on Mar 10, 2015

@author: kent
'''
from tempfile import mkdtemp
import pysumo
from pySUMOQt import MainWindow
import shutil

"""
Steps:
1. Open pySUMO
2. Open a new Ontology named "Mondial"
3. Open a remote ontology named "Mondial" at location: http://sigmakee.cvs.sourceforge.net/viewvc/sigmakee/KBs/mondial.kif
4. Close the ontology named "Mondial" with save and reopen it as local file.
5. Add Text Editor Widget
6. Add Documentation Widget
7. Add Graph Widget
8. Add Hierarchy Widget
9. Reorder Widgets
10. Make a print preview of the ontology "Mondial" from the Text Editor Widget
10a. Delete the Text Editor Widget
11. Make a print preview of the ontology "Mondial" from the Graph Widget
11a. Add a node and a relation in Graph widget
11b. Delete the Graph Widget
12. Try to update the ontology "Mondial"
13. Open ontology properties dialog for "Mondial" and then close it.
14. Open Option Dialog and then close it
15. Revert the ontology "Mondial"
16. Quit pySUMO
"""
if __name__ == "__main__":
    tmpdir = mkdtemp()
    pysumo.CONFIG_PATH = tmpdir
    MainWindow.main()
#    MainWindow.main()
    shutil.rmtree(tmpdir, ignore_errors=True)

Created on Mar 10, 2015  @author: kent Steps: 1. Open pySUMO 2. Open a new Ontology named "Mondial" 3. Open a remote ontology named "Mondial" at location: http://sigmakee.cvs.sourceforge.net/viewvc/sigmakee/KBs/mondial.kif 4. Close the ontology named "Mondial" with save and reopen it as local file. 5. Add Text Editor Widget 6. Add Documentation Widget 7. Add Graph Widget 8. Add Hierarchy Widget 9. Reorder Widgets 10. Make a print preview of the ontology "Mondial" from the Text Editor Widget 10a. Delete the Text Editor Widget 11. Make a print preview of the ontology "Mondial" from the Graph Widget 11a. Add a node and a relation in Graph widget 11b. Delete the Graph Widget 12. Try to update the ontology "Mondial" 13. Open ontology properties dialog for "Mondial" and then close it. 14. Open Option Dialog and then close it 15. Revert the ontology "Mondial" 16. Quit pySUMO #    MainWindow.main()