mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-30 13:09:42 +02:00
Update test PR to work with latest code, fix flake8
This commit is contained in:
1 parent
513e2cc704
commit
54963b0b59
8 files changed
+29
-27
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import pytest
|
||||
import logging
|
||||
import os
|
||||
from ..utils import get_artifact, get_artifact_folder, init_setup
|
||||
from mvt.common.indicators import Indicators, IndicatorsFileBadFormat
|
||||
|
||||
from mvt.ios.modules.backup.backup_info import BackupInfo
|
||||
from mvt.common.module import run_module
|
||||
|
||||
from ..utils import get_artifact_folder, init_setup
|
||||
|
||||
|
||||
class TestBackupInfoModule:
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@@ -17,4 +17,3 @@ class TestBackupInfoModule:
|
||||
run_module(m)
|
||||
assert m.results["Build Version"] == "18C66"
|
||||
assert m.results["IMEI"] == '42'
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import pytest
|
||||
import logging
|
||||
import os
|
||||
from ..utils import get_artifact, get_artifact_folder, init_setup
|
||||
from mvt.common.indicators import Indicators, IndicatorsFileBadFormat
|
||||
|
||||
from mvt.common.indicators import Indicators
|
||||
from mvt.ios.modules.mixed.net_datausage import Datausage
|
||||
from mvt.common.module import run_module
|
||||
|
||||
from ..utils import get_artifact, get_artifact_folder, init_setup
|
||||
|
||||
class TestDatausageModule:
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@@ -28,5 +28,3 @@ class TestDatausageModule:
|
||||
m.indicators = ind
|
||||
run_module(m)
|
||||
assert len(m.detected) == 4
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import pytest
|
||||
import logging
|
||||
import os
|
||||
from ..utils import get_artifact, get_artifact_folder, init_setup
|
||||
from mvt.common.indicators import Indicators, IndicatorsFileBadFormat
|
||||
|
||||
from mvt.common.indicators import Indicators
|
||||
from mvt.ios.modules.backup.manifest import Manifest
|
||||
from mvt.common.module import run_module
|
||||
|
||||
from ..utils import get_artifact, get_artifact_folder, init_setup
|
||||
|
||||
class TestManifestModule:
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@@ -28,5 +28,3 @@ class TestManifestModule:
|
||||
m.indicators = ind
|
||||
run_module(m)
|
||||
assert len(m.detected) == 2
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import pytest
|
||||
import logging
|
||||
import os
|
||||
from ..utils import get_artifact_folder, init_setup
|
||||
|
||||
from mvt.ios.modules.mixed.tcc import TCC
|
||||
from mvt.common.module import run_module
|
||||
|
||||
from ..utils import get_artifact_folder, init_setup
|
||||
|
||||
class TestManifestModule:
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@@ -16,8 +16,7 @@ class TestManifestModule:
|
||||
run_module(m)
|
||||
assert len(m.results) == 11
|
||||
# FIXME: TCC should suport timeline
|
||||
assert len(m.timeline) == 0
|
||||
assert len(m.timeline) == 11
|
||||
assert len(m.detected) == 0
|
||||
assert m.results[0]["service"] == "kTCCServiceUbiquity"
|
||||
assert m.results[0]["auth_value"] == "allowed"
|
||||
|
||||
Reference in new issue
Block a user