From 9940b1d1454f22ebb576ee531bcc22461404316c Mon Sep 17 00:00:00 2001 From: tek Date: Tue, 1 Mar 2022 18:54:34 +0100 Subject: [PATCH] Adds test of the check-backup command --- tests/test_check_backup.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/test_check_backup.py diff --git a/tests/test_check_backup.py b/tests/test_check_backup.py new file mode 100644 index 0000000..e71ef4b --- /dev/null +++ b/tests/test_check_backup.py @@ -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