How to use qface - 10 common examples

To help you get started, we’ve selected a few qface examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Pelagicore / qface / tests / test_values.py View on Github external
def loadValues():
    path = inputPath / 'values.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_validation.py View on Github external
def load_one():
    path = inputPath / 'com.pelagicore.one.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_comments.py View on Github external
def loadEcho():
    path = inputPath / 'org.example.echo.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_generator.py View on Github external
def loadSystem():
    path = inputPath / 'com.pelagicore.ivi.tuner.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_climate.py View on Github external
def load_system():
    path = inputPath / 'com.pelagicore.ivi.climate.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_tags.py View on Github external
def loadTuner():
    path = inputPath / 'com.pelagicore.ivi.tuner.qface'
    return FileSystem.parse_document(path)
github Pelagicore / qface / tests / test_generator.py View on Github external
def test_destination_prefix():
    system = FileSystem.parse(inputPath)
    out = Path('tests/out')
    out.rmtree_p()
    out.makedirs_p()
    generator = Generator(search_path='tests/templates')
    for module in system.modules:
        dst_template = '{{out}}/{{module|lower}}.txt'
        ctx = {'out': out.abspath(), 'module': module}
        generator.write(dst_template, 'module.txt', ctx)
        path = generator.apply(dst_template, ctx)
        assert Path(path).exists()
    out.rmtree_p()
github Pelagicore / qface / tests / test_generator.py View on Github external
def test_parse_document_mixed():
    src = [inputPath, inputPath / 'com.pelagicore.ivi.climate.qface']
    system = FileSystem.parse(src)
    assert system.lookup('com.pelagicore.ivi.tuner')
    assert system.lookup('com.pelagicore.ivi.climate')
    assert system.lookup('com.pelagicore.one')
github Pelagicore / qface / tests / test_parser.py View on Github external
def test_parse():
    log.debug('test parse')
    system = FileSystem.parse(inputPath)
    assert system
github Pelagicore / qface / tests / test_generator.py View on Github external
def test_parse_document():
    system = FileSystem.parse(inputPath / 'com.pelagicore.ivi.tuner.qface')
    assert system.lookup('com.pelagicore.ivi.tuner')