How to use the hupper.cli.interval_parser function in hupper

To help you get started, we’ve selected a few hupper 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 Pylons / hupper / tests / test_cli.py View on Github external
def test_interval_parser():
    assert interval_parser("5") == 5
github Pylons / hupper / tests / test_cli.py View on Github external
def test_interval_parser_errors(value):
    with pytest.raises(argparse.ArgumentTypeError):
        interval_parser(value)