mvt/tests/test_check_bugreport.py

22 lines
587 B
Python
Raw Permalink Normal View History

2022-03-29 23:16:22 +00:00
# Mobile Verification Toolkit (MVT)
# Copyright (c) 2021-2022 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
2022-03-29 23:16:22 +00:00
from click.testing import CliRunner
from mvt.android.cli import check_bugreport
from .utils import get_artifact_folder
2022-03-29 23:16:22 +00:00
class TestCheckBugreportCommand:
2022-06-17 15:07:36 +00:00
2022-03-29 23:16:22 +00:00
def test_check(self):
runner = CliRunner()
path = os.path.join(get_artifact_folder(), "android_data/bugreport/")
result = runner.invoke(check_bugreport, [path])
assert result.exit_code == 0