aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_climate.py
blob: 6afd91a2870879e70ab28dde6e12283dcc6ffc19 (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
25
26
27
28
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 / 'climate.qdl'
    return FileSystem.parse_document(path)


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