qutebrowser/tests/unit/commands
Florian Bruhin 943dc564b2 Fix choices validation with unannotated args
Something like:

    @cmdutils.argument('foo', choices=['one', 'two'])
    def func(foo):
        # ...

didn't actually validate the foo argument, since the inferred type of
the argument is None, and that skipped all conversion (and thus
validation).

Fixes #1871
See #1885

This is a reworked version of 12061b8bb1
which lets special parameters (count/win_id/flags) through correctly.
2016-08-25 22:16:25 +02:00
..
test_argparser.py tests: Use pytest.fixture instead of yield_fixture 2016-08-22 07:40:24 +02:00
test_cmdutils.py Fix choices validation with unannotated args 2016-08-25 22:16:25 +02:00
test_runners.py Fix crash when doing :<space><enter> 2016-08-05 15:42:03 +02:00
test_userscripts.py tests: Use pytest.fixture instead of yield_fixture 2016-08-22 07:40:24 +02:00