From b697874f5663862a398de77c1065e0c16c5e1dc1 Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 18 Jan 2022 16:00:03 +0100 Subject: [PATCH] Conforming the test files --- tests/artifacts/generate_stix.py | 8 +++++++- tests/common/test_indicators.py | 6 ++++++ tests/conftest.py | 5 +++++ tests/ios/test_backup_info.py | 7 ++++++- tests/ios/test_datausage.py | 8 +++++++- tests/ios/test_manifest.py | 7 ++++++- tests/ios/test_tcc.py | 8 +++++++- tests/utils.py | 5 +++++ 8 files changed, 49 insertions(+), 5 deletions(-) diff --git a/tests/artifacts/generate_stix.py b/tests/artifacts/generate_stix.py index 8c638a2..1503529 100644 --- a/tests/artifacts/generate_stix.py +++ b/tests/artifacts/generate_stix.py @@ -1,6 +1,12 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import os -from stix2.v21 import (Indicator, Malware, Relationship, Bundle) +from stix2.v21 import Bundle, Indicator, Malware, Relationship + def generate_test_stix_file(file_path): if os.path.isfile(file_path): diff --git a/tests/common/test_indicators.py b/tests/common/test_indicators.py index 71ceecc..4e95405 100644 --- a/tests/common/test_indicators.py +++ b/tests/common/test_indicators.py @@ -1,8 +1,14 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import logging import os from mvt.common.indicators import Indicators + class TestIndicators: def test_parse_stix2(self, indicator_file): ind = Indicators(log=logging) diff --git a/tests/conftest.py b/tests/conftest.py index 517714c..9323d11 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,8 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import os import pytest diff --git a/tests/ios/test_backup_info.py b/tests/ios/test_backup_info.py index 75b40a0..ed41707 100644 --- a/tests/ios/test_backup_info.py +++ b/tests/ios/test_backup_info.py @@ -1,7 +1,12 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import logging -from mvt.ios.modules.backup.backup_info import BackupInfo from mvt.common.module import run_module +from mvt.ios.modules.backup.backup_info import BackupInfo from ..utils import get_backup_folder diff --git a/tests/ios/test_datausage.py b/tests/ios/test_datausage.py index 9ebf498..feaa103 100644 --- a/tests/ios/test_datausage.py +++ b/tests/ios/test_datausage.py @@ -1,11 +1,17 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import logging from mvt.common.indicators import Indicators -from mvt.ios.modules.mixed.net_datausage import Datausage from mvt.common.module import run_module +from mvt.ios.modules.mixed.net_datausage import Datausage from ..utils import get_backup_folder + class TestDatausageModule: def test_datausage(self): m = Datausage(base_folder=get_backup_folder(), log=logging, results=[]) diff --git a/tests/ios/test_manifest.py b/tests/ios/test_manifest.py index 7316a90..749eefc 100644 --- a/tests/ios/test_manifest.py +++ b/tests/ios/test_manifest.py @@ -1,8 +1,13 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import logging from mvt.common.indicators import Indicators -from mvt.ios.modules.backup.manifest import Manifest from mvt.common.module import run_module +from mvt.ios.modules.backup.manifest import Manifest from ..utils import get_backup_folder diff --git a/tests/ios/test_tcc.py b/tests/ios/test_tcc.py index dea6faa..f93920e 100644 --- a/tests/ios/test_tcc.py +++ b/tests/ios/test_tcc.py @@ -1,10 +1,16 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import logging -from mvt.ios.modules.mixed.tcc import TCC from mvt.common.module import run_module +from mvt.ios.modules.mixed.tcc import TCC from ..utils import get_backup_folder + class TestManifestModule: def test_manifest(self): m = TCC(base_folder=get_backup_folder(), log=logging, results=[]) diff --git a/tests/utils.py b/tests/utils.py index 2f577c7..a9a2b0b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,3 +1,8 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021 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/ + import os