Fixing newlines

This commit is contained in:
Nex 2022-06-17 17:07:36 +02:00
parent dd230c2407
commit 444ecf032d
13 changed files with 12 additions and 1 deletions

View File

@ -113,4 +113,3 @@ class Command(object):
self.timeline_detected.extend(m.timeline_detected) self.timeline_detected.extend(m.timeline_detected)
self._store_timeline() self._store_timeline()

View File

@ -16,6 +16,7 @@ from ..utils import get_android_backup_folder
class TestBackupModule: class TestBackupModule:
def test_module_folder(self): def test_module_folder(self):
backup_path = get_android_backup_folder() backup_path = get_android_backup_folder()
mod = SMS(target_path=backup_path, log=logging) mod = SMS(target_path=backup_path, log=logging)

View File

@ -11,6 +11,7 @@ from ..utils import get_artifact
class TestBackupParsing: class TestBackupParsing:
def test_parsing_noencryption(self): def test_parsing_noencryption(self):
file = get_artifact("android_backup/backup.ab") file = get_artifact("android_backup/backup.ab")
with open(file, "rb") as f: with open(file, "rb") as f:

View File

@ -14,6 +14,7 @@ from ..utils import get_artifact_folder
class TestAppopsModule: class TestAppopsModule:
def test_appops_parsing(self): def test_appops_parsing(self):
fpath = os.path.join(get_artifact_folder(), "android_data/bugreport/") fpath = os.path.join(get_artifact_folder(), "android_data/bugreport/")
m = Appops(target_path=fpath, log=logging, results=[]) m = Appops(target_path=fpath, log=logging, results=[])

View File

@ -9,6 +9,7 @@ from ..utils import get_artifact
class TestDumpsysParsing: class TestDumpsysParsing:
def test_appops_parsing(self): def test_appops_parsing(self):
file = get_artifact("android_data/dumpsys_appops.txt") file = get_artifact("android_data/dumpsys_appops.txt")
with open(file) as f: with open(file) as f:

View File

@ -12,6 +12,7 @@ from ..utils import get_ios_backup_folder
class TestBackupInfoModule: class TestBackupInfoModule:
def test_manifest(self): def test_manifest(self):
m = BackupInfo(target_path=get_ios_backup_folder(), log=logging) m = BackupInfo(target_path=get_ios_backup_folder(), log=logging)
run_module(m) run_module(m)

View File

@ -13,6 +13,7 @@ from ..utils import get_ios_backup_folder
class TestDatausageModule: class TestDatausageModule:
def test_datausage(self): def test_datausage(self):
m = Datausage(target_path=get_ios_backup_folder(), log=logging, results=[]) m = Datausage(target_path=get_ios_backup_folder(), log=logging, results=[])
run_module(m) run_module(m)

View File

@ -13,6 +13,7 @@ from ..utils import get_ios_backup_folder
class TestManifestModule: class TestManifestModule:
def test_manifest(self): def test_manifest(self):
m = Manifest(target_path=get_ios_backup_folder(), log=logging, results=[]) m = Manifest(target_path=get_ios_backup_folder(), log=logging, results=[])
run_module(m) run_module(m)

View File

@ -13,6 +13,7 @@ from ..utils import get_ios_backup_folder
class TestSafariBrowserStateModule: class TestSafariBrowserStateModule:
def test_parsing(self): def test_parsing(self):
m = SafariBrowserState(target_path=get_ios_backup_folder(), log=logging, results=[]) m = SafariBrowserState(target_path=get_ios_backup_folder(), log=logging, results=[])
m.is_backup = True m.is_backup = True

View File

@ -13,6 +13,7 @@ from ..utils import get_ios_backup_folder
class TestSMSModule: class TestSMSModule:
def test_sms(self): def test_sms(self):
m = SMS(target_path=get_ios_backup_folder(), log=logging, results=[]) m = SMS(target_path=get_ios_backup_folder(), log=logging, results=[])
run_module(m) run_module(m)

View File

@ -13,6 +13,7 @@ from ..utils import get_ios_backup_folder
class TestTCCtModule: class TestTCCtModule:
def test_tcc(self): def test_tcc(self):
m = TCC(target_path=get_ios_backup_folder(), log=logging, results=[]) m = TCC(target_path=get_ios_backup_folder(), log=logging, results=[])
run_module(m) run_module(m)

View File

@ -11,6 +11,7 @@ from .utils import get_ios_backup_folder
class TestCheckBackupCommand: class TestCheckBackupCommand:
def test_check(self): def test_check(self):
runner = CliRunner() runner = CliRunner()
path = get_ios_backup_folder() path = get_ios_backup_folder()

View File

@ -13,6 +13,7 @@ from .utils import get_artifact_folder
class TestCheckBugreportCommand: class TestCheckBugreportCommand:
def test_check(self): def test_check(self):
runner = CliRunner() runner = CliRunner()
path = os.path.join(get_artifact_folder(), "android_data/bugreport/") path = os.path.join(get_artifact_folder(), "android_data/bugreport/")