forked from openlp/openlp
26 lines
659 B
Python
26 lines
659 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Base directory for tests
|
|
"""
|
|
import sip
|
|
sip.setapi('QDate', 2)
|
|
sip.setapi('QDateTime', 2)
|
|
sip.setapi('QString', 2)
|
|
sip.setapi('QTextStream', 2)
|
|
sip.setapi('QTime', 2)
|
|
sip.setapi('QUrl', 2)
|
|
sip.setapi('QVariant', 2)
|
|
|
|
import sys
|
|
from PyQt4 import QtGui
|
|
|
|
if sys.version_info[1] >= 3:
|
|
from unittest.mock import MagicMock, patch, mock_open, call
|
|
else:
|
|
from mock import MagicMock, patch, mock_open, call
|
|
|
|
# Only one QApplication can be created. Use QtGui.QApplication.instance() when you need to "create" a QApplication.
|
|
application = QtGui.QApplication([])
|
|
|
|
__all__ = ['MagicMock', 'patch', 'mock_open', 'call', 'application']
|