Source: cookiecutter
Version: 1.6.0-2
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/cookiecutter.html
...
=================================== FAILURES ===================================
____________________ test_cli_extra_context_invalid_format _____________________
cli_runner = <function cli_main at 0x7f55fc011578>
@pytest.mark.usefixtures('remove_fake_project_dir')
def test_cli_extra_context_invalid_format(cli_runner):
result = cli_runner(
'tests/fake-repo-pre/',
'--no-input',
'-v',
'ExtraContextWithNoEqualsSoInvalid',
)
assert result.exit_code == 2
> assert 'Error: Invalid value for "extra_context"' in result.output
E assert 'Error: Invalid value for "extra_context"' in 'Usage: main
[OPTIONS] TEMPLATE [EXTRA_CONTEXT]...\n\nError: Invalid value for
"[EXTRA_CONTEXT]...": EXTRA_CONTEXT should contain items of the form key=value;
\'ExtraContextWithNoEqualsSoInvalid\' doesn\'t match that form\n'
E + where 'Usage: main [OPTIONS] TEMPLATE [EXTRA_CONTEXT]...\n\nError:
Invalid value for "[EXTRA_CONTEXT]...": EXTRA_CONTEXT should contain items of
the form key=value; \'ExtraContextWithNoEqualsSoInvalid\' doesn\'t match that
form\n' = <Result SystemExit(2,)>.output
tests/test_cli.py:390: AssertionError
_________________ test_should_raise_error_without_template_arg _________________
capfd = <_pytest.capture.CaptureFixture object at 0x7f55fbf7f250>
def test_should_raise_error_without_template_arg(capfd):
with pytest.raises(subprocess.CalledProcessError):
subprocess.check_call(['python', '-m', 'cookiecutter.cli'])
_, err = capfd.readouterr()
exp_message = 'Error: Missing argument "template".'
> assert exp_message in err
E assert 'Error: Missing argument "template".' in 'Usage: cli.py
[OPTIONS] TEMPLATE [EXTRA_CONTEXT]...\nTry "cli.py -h" for help.\n\nError:
Missing argument "TEMPLATE".\n'
tests/test_cookiecutter_invocation.py:25: AssertionError
---------- coverage: platform linux2, python 2.7.15-final-0 ----------
Name Stmts Miss Cover
-------------------------------------------------
cookiecutter/__init__.py 2 0 100%
cookiecutter/__main__.py 3 0 100%
cookiecutter/cli.py 49 0 100%
cookiecutter/config.py 51 0 100%
cookiecutter/environment.py 21 0 100%
cookiecutter/exceptions.py 24 0 100%
cookiecutter/extensions.py 9 0 100%
cookiecutter/find.py 18 0 100%
cookiecutter/generate.py 166 0 100%
cookiecutter/hooks.py 61 0 100%
cookiecutter/log.py 21 0 100%
cookiecutter/main.py 31 0 100%
cookiecutter/prompt.py 90 0 100%
cookiecutter/replay.py 30 0 100%
cookiecutter/repository.py 39 0 100%
cookiecutter/utils.py 50 2 96%
cookiecutter/vcs.py 54 0 100%
cookiecutter/zipfile.py 61 0 100%
-------------------------------------------------
TOTAL 780 2 99%
=============== 2 failed, 258 passed, 1 skipped in 8.75 seconds ================
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd
/build/1st/cookiecutter-1.6.0/.pybuild/cpython2_2.7_cookiecutter/build;
python2.7 -m pytest tests
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:10: build] Error 25