2022-03-29 23:16:22 +00:00
|
|
|
# Mobile Verification Toolkit (MVT)
|
2023-02-08 19:18:16 +00:00
|
|
|
# Copyright (c) 2021-2023 Claudio Guarnieri.
|
2022-03-29 23:16:22 +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/
|
|
|
|
|
|
|
|
import os
|
2023-02-14 16:51:55 +00:00
|
|
|
|
2022-03-29 23:16:22 +00:00
|
|
|
from click.testing import CliRunner
|
|
|
|
|
2022-10-11 10:41:42 +00:00
|
|
|
from mvt.android.cli import check_androidqf
|
2022-03-29 23:16:22 +00:00
|
|
|
|
|
|
|
from .utils import get_artifact_folder
|
|
|
|
|
2022-03-30 06:49:22 +00:00
|
|
|
|
2022-10-11 10:41:42 +00:00
|
|
|
class TestCheckAndroidqfCommand:
|
2022-06-17 15:07:36 +00:00
|
|
|
|
2022-03-29 23:16:22 +00:00
|
|
|
def test_check(self):
|
|
|
|
runner = CliRunner()
|
2022-10-11 10:41:42 +00:00
|
|
|
path = os.path.join(get_artifact_folder(), "androidqf")
|
|
|
|
result = runner.invoke(check_androidqf, [path])
|
2022-03-29 23:16:22 +00:00
|
|
|
assert result.exit_code == 0
|