Exemple #1
0
def test_multivals(conffile, environ):
    crestic.main(["multivals", "backup"], conffile=conffile, environ=environ)
    subprocess.call.assert_called_once_with(
        [
            'restic', 'backup', '--exclude-file', 'bla', '--exclude',
            'config.py', '--exclude', 'passwords.txt', '/home/user'
        ],
        env=os.environ,
        shell=False,
    )
Exemple #2
0
def test_singlechar(conffile, environ):
    crestic.main(["singlechar", "backup"], conffile=conffile, environ=environ)
    subprocess.call.assert_called_once_with(
        [
            'restic', 'backup', '--exclude-file', 'bla', '-r', 'repo-url',
            '/home/user'
        ],
        env=os.environ,
        shell=False,
    )