blob: b7adec6186b3997de749aa3ec5194646a75e0979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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.qface'
return FileSystem.parse_document(path)
def test_interface():
system = load_system()
interface = system.lookup('com.pelagicore.ivi.climate.ClimateControl')
assert interface.name == 'ClimateControl'
|