qutebrowser/tests/unit/commands
Florian Bruhin a0d0b6464f Use typing.py-like annotations for command args
This means:

- An annotation like (int, str) is now typing.Union[int, str].
- utils.typing got expanded so it acts like the real typing.py, with
  issubclass() working properly with typing.Union and __union_params__
  being set.
- A literal string doesn't exist anymore as annotation, instead
  @cmdutils.argument now has a 'choices' argument which can be used like
  @cmdutils.argument('arg', choices=['val1', 'val2']).
- Argument validating/converting is now entirely handled by
  argparser.type_conv instead of relying on python's argparse, i.e.
  type/choices is now not passed to argparse anymore.
2016-05-18 06:55:17 +02:00
..
test_argparser.py Use typing.py-like annotations for command args 2016-05-18 06:55:17 +02:00
test_cmdutils.py Use typing.py-like annotations for command args 2016-05-18 06:55:17 +02:00
test_runners.py Adjust copyright years. 2016-01-04 07:12:39 +01:00
test_userscripts.py tests: Default to raising=True for qtbot. 2016-01-08 09:49:06 +01:00