How to use the dunamai._run_cmd function in dunamai

To help you get started, we’ve selected a few dunamai 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 mtkennerly / dunamai / tests / unit / test_main.py View on Github external
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)
github mtkennerly / dunamai / tests / unit / test_main.py View on Github external
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)
github mtkennerly / dunamai / tests / unit / test_dunamai.py View on Github external
def inner(command, expected_code: int = 0):
        _, out = _run_cmd(command, where=where, codes=[expected_code])
        return out
github mtkennerly / dunamai / tests / integration / test_dunamai.py View on Github external
def inner(command, expected_code: int = 0):
        _, out = _run_cmd(command, where=where, codes=[expected_code])
        return out
github mtkennerly / dunamai / tests / unit / test_main.py View on Github external
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)
github mtkennerly / dunamai / tests / unit / test_main.py View on Github external
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)
github mtkennerly / dunamai / tests / unit / test_main.py View on Github external
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)