コード例 #1
0
ファイル: test_dunamai.py プロジェクト: theister/dunamai
 def inner(command, expected_code: int = 0, env: dict = None):
     _, out = _run_cmd(command, where=where, codes=[expected_code], env=env)
     return out
コード例 #2
0
 def inner(command, expected_code: int = 0):
     _, out = _run_cmd(command, where=where, codes=[expected_code])
     return out
コード例 #3
0
def test__cli_check():
    _run_cmd("dunamai check 0.01.0")
    _run_cmd("dunamai check v0.1.0", codes=[1])
    _run_cmd("dunamai check 0.01.0 --style semver", codes=[1])
    _run_cmd("dunamai check", codes=[1])
    _run_cmd("echo 0.01.0 | dunamai check", shell=True)