summaryrefslogtreecommitdiff
path: root/tests/test_climate.py
blob: 287b36a7fe01bed9178a6d1c64eb7ef55e5cf987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from qface.generator import FileSystem
import logging
import logging.config
from pathlib import Path

# logging.config.fileConfig('logging.ini')
logging.basicConfig()

log = logging.getLogger(__name__)

inputPath = Path('tests/in')
log.debug('input path folder: {0}'.format(inputPath.absolute()))


def load_system():
    path = inputPath / 'com.pelagicore.ivi.climate.qdl'
    return FileSystem.parse_document(path)


def test_interface():
    system = load_system()
    interface = system.lookup('com.pelagicore.ivi.climate.ClimateControl')
    assert interface.name == 'ClimateControl'