Add generate-borgmatic-config end-to-end test.
This commit is contained in:
parent
43d711463c
commit
68f9c1b950
1 changed files with 16 additions and 0 deletions
16
tests/end-to-end/test_generate_config.py
Normal file
16
tests/end-to-end/test_generate_config.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import tempfile
|
||||||
|
|
||||||
|
|
||||||
|
def test_generate_borgmatic_config_with_merging_succeeds():
|
||||||
|
with tempfile.TemporaryDirectory() as temporary_directory:
|
||||||
|
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||||
|
new_config_path = os.path.join(temporary_directory, 'new.yaml')
|
||||||
|
|
||||||
|
subprocess.check_call(f'generate-borgmatic-config --destination {config_path}'.split(' '))
|
||||||
|
subprocess.check_call(
|
||||||
|
f'generate-borgmatic-config --source {config_path} --destination {new_config_path}'.split(
|
||||||
|
' '
|
||||||
|
)
|
||||||
|
)
|
Loading…
Reference in a new issue