todoman icon indicating copy to clipboard operation
todoman copied to clipboard

Broken test?

Open leenaars opened this issue 7 years ago • 1 comments

Thanks for the great tool. On updating to the new version, for me the test test_list_inexistant fails unnecessarily. The output seems to be slightly different than the test check expects ... :

_____________________________ test_list_inexistant _____________________________

tmpdir = local('/build/pytest-of-nixbld/pytest-0/test_list_inexistant0')
runner = <conftest.runner.<locals>.SleepyCliRunner object at 0x7fffe8f70e48>
create = <function create.<locals>.inner at 0x7fffe6ba37b8>

    def test_list_inexistant(tmpdir, runner, create):
        result = runner.invoke(cli, ['list', 'nonexistant'])
        assert result.exception
>       assert (
            'Error: Invalid value for "[LISTS]...": nonexistant'
            in result.output
        )
E       assert 'Error: Invalid value for "[LISTS]...": nonexistant' in 'Usage: cli list [OPTIONS] [LISTS]...\n\nError: Invalid value for "lists": nonexistant. Available lists are: default, fd0ee793d66644a1bdcefc923ff61e07\n'
E        +  where 'Usage: cli list [OPTIONS] [LISTS]...\n\nError: Invalid value for "lists": nonexistant. Available lists are: default, fd0ee793d66644a1bdcefc923ff61e07\n' = <Result SystemExit(2,)>.output

leenaars avatar Oct 21 '18 08:10 leenaars

Can you provide a list of installed dependencies (that'd be the output of pip freeze, and python --version).

Tests seem to be passing on CI/Travis.

WhyNotHugo avatar Oct 22 '18 03:10 WhyNotHugo