Remove some sections from tests (#721).
This commit is contained in:
parent
ab351548d2
commit
a3f47a6418
2 changed files with 14 additions and 16 deletions
|
@ -25,7 +25,7 @@ def write_configuration(
|
||||||
source_directories:
|
source_directories:
|
||||||
- {source_directory}
|
- {source_directory}
|
||||||
repositories:
|
repositories:
|
||||||
- {repository_path}
|
- path: {repository_path}
|
||||||
borgmatic_source_directory: {borgmatic_source_directory}
|
borgmatic_source_directory: {borgmatic_source_directory}
|
||||||
|
|
||||||
encryption_passphrase: "test"
|
encryption_passphrase: "test"
|
||||||
|
@ -96,7 +96,7 @@ def write_custom_restore_configuration(
|
||||||
source_directories:
|
source_directories:
|
||||||
- {source_directory}
|
- {source_directory}
|
||||||
repositories:
|
repositories:
|
||||||
- {repository_path}
|
- path: {repository_path}
|
||||||
borgmatic_source_directory: {borgmatic_source_directory}
|
borgmatic_source_directory: {borgmatic_source_directory}
|
||||||
|
|
||||||
encryption_passphrase: "test"
|
encryption_passphrase: "test"
|
||||||
|
@ -158,7 +158,7 @@ def write_simple_custom_restore_configuration(
|
||||||
source_directories:
|
source_directories:
|
||||||
- {source_directory}
|
- {source_directory}
|
||||||
repositories:
|
repositories:
|
||||||
- {repository_path}
|
- path: {repository_path}
|
||||||
borgmatic_source_directory: {borgmatic_source_directory}
|
borgmatic_source_directory: {borgmatic_source_directory}
|
||||||
|
|
||||||
encryption_passphrase: "test"
|
encryption_passphrase: "test"
|
||||||
|
|
|
@ -58,14 +58,13 @@ foo:
|
||||||
- baz
|
- baz
|
||||||
- quux
|
- quux
|
||||||
|
|
||||||
location:
|
repositories:
|
||||||
repositories:
|
- one
|
||||||
- one
|
- two
|
||||||
- two
|
|
||||||
|
|
||||||
# This comment should be kept.
|
# This comment should be kept.
|
||||||
# COMMENT_OUT
|
# COMMENT_OUT
|
||||||
other: thing
|
other: thing
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
@ -75,13 +74,12 @@ location:
|
||||||
# - baz
|
# - baz
|
||||||
# - quux
|
# - quux
|
||||||
|
|
||||||
location:
|
repositories:
|
||||||
repositories:
|
- one
|
||||||
- one
|
- two
|
||||||
- two
|
|
||||||
|
|
||||||
# This comment should be kept.
|
# This comment should be kept.
|
||||||
# other: thing
|
# other: thing
|
||||||
'''
|
'''
|
||||||
|
|
||||||
assert module.comment_out_optional_configuration(config.strip()) == expected_config.strip()
|
assert module.comment_out_optional_configuration(config.strip()) == expected_config.strip()
|
||||||
|
|
Loading…
Reference in a new issue