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