Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
"""
Test "--version"
"""
def test_valid_call(cli):
code, stdout, stderr = cli.run('--version')
assert code == 0
assert len(stderr) == 0
assert len(stdout) == 4
assert re.match('LibrePCB CLI Version \\d+\\.\\d+\\.\\d+(\\-\\w+)?$', stdout[0])
assert re.match('Git Revision .+', stdout[1])
assert re.match('Qt Version .+', stdout[2])
assert re.match('Built at .+', stdout[3])
65187b73eThis file is pinned to the selected release. Download the original to open it in your design tool.