Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
python-click
python-click-test_compat.py.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-click-test_compat.py.patch of Package python-click
--- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,20 +1,20 @@ import click -if click.__version__ >= '3.0': - def test_legacy_callbacks(runner): - def legacy_callback(ctx, value): - return value.upper() - - @click.command() - @click.option('--foo', callback=legacy_callback) - def cli(foo): - click.echo(foo) - - result = runner.invoke(cli, ['--foo', 'wat']) - assert result.exit_code == 0 - assert 'WAT' in result.output - assert 'Invoked legacy parameter callback' in result.output +#if click.__version__ >= '3.0': +# def test_legacy_callbacks(runner): +# def legacy_callback(ctx, value): +# return value.upper() +# +# @click.command() +# @click.option('--foo', callback=legacy_callback) +# def cli(foo): +# click.echo(foo) +# +# result = runner.invoke(cli, ['--foo', 'wat']) +# assert result.exit_code == 0 +# assert 'WAT' in result.output +# assert 'Invoked legacy parameter callback' in result.output def test_bash_func_name():
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor