mvt/tests/test_check_backup.py

20 lines
526 B
Python
Raw Normal View History

2022-03-01 17:54:34 +00:00
# Mobile Verification Toolkit (MVT)
# Copyright (c) 2021-2022 Claudio Guarnieri.
2022-03-01 17:54:34 +00:00
# Use of this software is governed by the MVT License 1.1 that can be found at
# https://license.mvt.re/1.1/
from click.testing import CliRunner
from mvt.ios.cli import check_backup
2022-03-04 11:34:54 +00:00
from .utils import get_ios_backup_folder
2022-03-01 17:54:34 +00:00
class TestCheckBackupCommand:
2022-06-17 15:07:36 +00:00
2022-03-01 17:54:34 +00:00
def test_check(self):
runner = CliRunner()
2022-03-04 11:34:54 +00:00
path = get_ios_backup_folder()
2022-03-01 17:54:34 +00:00
result = runner.invoke(check_backup, [path])
assert result.exit_code == 0