Remove configuration sections. #723

Merged
witten merged 13 commits from remove-sections into main 2023-07-14 03:10:52 +00:00
2 changed files with 14 additions and 16 deletions
Showing only changes of commit a3f47a6418 - Show all commits

View File

@ -25,7 +25,7 @@ def write_configuration(
source_directories:
- {source_directory}
repositories:
- {repository_path}
- path: {repository_path}
borgmatic_source_directory: {borgmatic_source_directory}
encryption_passphrase: "test"
@ -96,7 +96,7 @@ def write_custom_restore_configuration(
source_directories:
- {source_directory}
repositories:
- {repository_path}
- path: {repository_path}
borgmatic_source_directory: {borgmatic_source_directory}
encryption_passphrase: "test"
@ -158,7 +158,7 @@ def write_simple_custom_restore_configuration(
source_directories:
- {source_directory}
repositories:
- {repository_path}
- path: {repository_path}
borgmatic_source_directory: {borgmatic_source_directory}
encryption_passphrase: "test"

View File

@ -58,14 +58,13 @@ foo:
- baz
- quux
location:
repositories:
- one
- two
repositories:
- one
- two
# This comment should be kept.
# COMMENT_OUT
other: thing
# This comment should be kept.
# COMMENT_OUT
other: thing
'''
# flake8: noqa
@ -75,13 +74,12 @@ location:
# - baz
# - quux
location:
repositories:
- one
- two
repositories:
- one
- two
# This comment should be kept.
# other: thing
# This comment should be kept.
# other: thing
'''
assert module.comment_out_optional_configuration(config.strip()) == expected_config.strip()