mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-16 09:44:05 +00:00
Adds test of the check-backup command
This commit is contained in:
parent
b07fb092aa
commit
9940b1d145
18
tests/test_check_backup.py
Normal file
18
tests/test_check_backup.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Mobile Verification Toolkit (MVT)
|
||||||
|
# Copyright (c) 2021-2022 The MVT Project Authors.
|
||||||
|
# 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
|
||||||
|
|
||||||
|
from .utils import get_backup_folder
|
||||||
|
|
||||||
|
|
||||||
|
class TestCheckBackupCommand:
|
||||||
|
def test_check(self):
|
||||||
|
runner = CliRunner()
|
||||||
|
path = get_backup_folder()
|
||||||
|
result = runner.invoke(check_backup, [path])
|
||||||
|
assert result.exit_code == 0
|
Loading…
Reference in New Issue
Block a user