test_generate_config.py 440 B

12345678910111213
  1. from borgmatic.commands import generate_config as module
  2. def test_parse_arguments_with_no_arguments_uses_defaults():
  3. parser = module.parse_arguments()
  4. assert parser.destination_filename == module.DEFAULT_DESTINATION_CONFIG_FILENAME
  5. def test_parse_arguments_with_filename_argument_overrides_defaults():
  6. parser = module.parse_arguments('--destination', 'config.yaml')
  7. assert parser.destination_filename == 'config.yaml'