2019-03-27 08:17:33 +00:00
|
|
|
# flake8: noqa
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
2019-04-14 03:02:30 +00:00
|
|
|
# noinspection PyUnresolvedReferences
|
2019-03-27 08:17:33 +00:00
|
|
|
class ImportTest(unittest.TestCase):
|
|
|
|
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
def test_import_all(self):
|
|
|
|
from vnpy.event import EventEngine
|
|
|
|
|
2019-04-14 03:02:30 +00:00
|
|
|
def test_import_main_engine(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.trader.engine import MainEngine
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_ui(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.trader.ui import MainWindow, create_qapp
|
|
|
|
|
2019-04-14 03:02:30 +00:00
|
|
|
def test_import_bitmex_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.bitmex import BitmexGateway
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_futu_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.futu import FutuGateway
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_ib_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.ib import IbGateway
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_ctp_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.ctp import CtpGateway
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_tiger_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.tiger import TigerGateway
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_oes_gateway(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.gateway.oes import OesGateway
|
|
|
|
|
2019-04-14 03:02:30 +00:00
|
|
|
def test_import_cta_strategy_app(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.app.cta_strategy import CtaStrategyApp
|
2019-04-14 03:02:30 +00:00
|
|
|
|
|
|
|
def test_import_csv_loader_app(self):
|
2019-03-27 08:17:33 +00:00
|
|
|
from vnpy.app.csv_loader import CsvLoaderApp
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|