2017-11-19 10:07:10 +13:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# --!-- coding: utf8 --!--
|
|
|
|
|
|
|
|
"""Tests."""
|
2017-11-19 12:20:49 +13:00
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
2017-11-20 05:54:04 +13:00
|
|
|
## Don't know why, this causes seg fault on SemaphoreCI
|
|
|
|
## Seg fault in app = QApplication(...)
|
|
|
|
# from manuskript import main
|
|
|
|
# app, MW = main.prepare()
|
|
|
|
|
2017-11-19 12:20:49 +13:00
|
|
|
# We need a qApplication to be running, or all the calls to qApp
|
|
|
|
# will throw a seg fault.
|
2017-11-20 05:54:04 +13:00
|
|
|
from PyQt5.QtWidgets import QApplication
|
|
|
|
app = QApplication([])
|
|
|
|
app.setOrganizationName("manuskript_tests")
|
|
|
|
app.setApplicationName("manuskript_tests")
|
2017-11-20 03:29:38 +13:00
|
|
|
|
2017-11-20 05:54:04 +13:00
|
|
|
from manuskript.mainWindow import MainWindow
|
|
|
|
MW = MainWindow()
|