Move tests to the root of the repository, in keeping with more common convention.
This commit is contained in:
parent
f9a9b42c58
commit
a125df991b
30 changed files with 7 additions and 7 deletions
13
tests/integration/commands/test_generate_config.py
Normal file
13
tests/integration/commands/test_generate_config.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from borgmatic.commands import generate_config as module
|
||||
|
||||
|
||||
def test_parse_arguments_with_no_arguments_uses_defaults():
|
||||
parser = module.parse_arguments()
|
||||
|
||||
assert parser.destination_filename == module.DEFAULT_DESTINATION_CONFIG_FILENAME
|
||||
|
||||
|
||||
def test_parse_arguments_with_filename_argument_overrides_defaults():
|
||||
parser = module.parse_arguments('--destination', 'config.yaml')
|
||||
|
||||
assert parser.destination_filename == 'config.yaml'
|
||||
Loading…
Add table
Add a link
Reference in a new issue