21 lines
639 B
Python
21 lines
639 B
Python
import sys
|
|
import os
|
|
|
|
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
|
if ROOT not in sys.path:
|
|
sys.path.insert(0, ROOT)
|
|
|
|
def test_import_core_and_messages():
|
|
# import a selection of modules to ensure no SyntaxError/ImportError
|
|
modules = [
|
|
'pymsc.core.app_controller',
|
|
'pymsc.lib1553.structures',
|
|
'pymsc.lib1553.message_base',
|
|
'pymsc.lib1553.messages.a1_settings',
|
|
'pymsc.lib1553.messages.a3_graphic_setting',
|
|
'pymsc.lib1553.messages.tws_status_and_targets',
|
|
'pymsc.lib1553.messages.tracked_target',
|
|
]
|
|
for m in modules:
|
|
__import__(m)
|