Beispiel #1
0
def test_validate_app(value):
    with pytest.raises(click.exceptions.Exit):
        callbacks.validate_app(
            SimpleNamespace(params={"show_errors_tracebacks": False}), None,
            value)
Beispiel #2
0
def test_validate_app(value):
    with pytest.raises(click.BadParameter):
        callbacks.validate_app(None, None, value)