test_bash.py 431 B

1234567891011121314151617
  1. from flexmock import flexmock
  2. from borgmatic.commands.completion import bash as module
  3. def test_parser_flags_flattens_and_joins_flags():
  4. assert (
  5. module.parser_flags(
  6. flexmock(
  7. _actions=[
  8. flexmock(option_strings=['--foo', '--bar']),
  9. flexmock(option_strings=['--baz']),
  10. ]
  11. )
  12. )
  13. == '--foo --bar --baz'
  14. )