Completed test coverage of commands (except for main()s).
This commit is contained in:
parent
263891f414
commit
2f7527a333
3 changed files with 30 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ def parse_arguments(*arguments):
|
|||
return parser.parse_args(arguments)
|
||||
|
||||
|
||||
def main():
|
||||
def main(): # pragma: no cover
|
||||
try:
|
||||
# TODO: Detect whether only legacy config is present. If so, inform the user about how to
|
||||
# upgrade, then exet.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ from borgmatic.config import convert, generate, legacy, validate
|
|||
|
||||
|
||||
DEFAULT_SOURCE_CONFIG_FILENAME = '/etc/borgmatic/config'
|
||||
# TODO: Fold excludes into the YAML config file.
|
||||
DEFAULT_SOURCE_EXCLUDES_FILENAME = '/etc/borgmatic/excludes'
|
||||
DEFAULT_DESTINATION_CONFIG_FILENAME = '/etc/borgmatic/config.yaml'
|
||||
|
||||
|
|
@ -37,7 +38,7 @@ def parse_arguments(*arguments):
|
|||
return parser.parse_args(arguments)
|
||||
|
||||
|
||||
def main():
|
||||
def main(): # pragma: no cover
|
||||
try:
|
||||
args = parse_arguments(*sys.argv[1:])
|
||||
source_config = legacy.parse_configuration(args.source_filename, legacy.CONFIG_FORMAT)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def parse_arguments(*arguments):
|
|||
return parser.parse_args(arguments)
|
||||
|
||||
|
||||
def main():
|
||||
def main(): # pragma: no cover
|
||||
try:
|
||||
args = parse_arguments(*sys.argv[1:])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue