forked from rednaga/APKiD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
52 lines (35 loc) · 1.3 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
Copyright (C) 2021 RedNaga. https://rednaga.io
All rights reserved. Contact: [email protected]
This file is part of APKiD
Commercial License Usage
------------------------
Licensees holding valid commercial APKiD licenses may use this file
in accordance with the commercial license agreement provided with the
Software or, alternatively, in accordance with the terms contained in
a written agreement between you and RedNaga.
GNU General Public License Usage
--------------------------------
Alternatively, this file may be used under the terms of the GNU General
Public License version 3.0 as published by the Free Software Foundation
and appearing in the file LICENSE.GPL included in the packaging of this
file. Please visit http://www.gnu.org/copyleft/gpl.html and review the
information to ensure the GNU General Public License version 3.0
requirements will be met.
"""
import yara
import pytest
from apkid.apkid import Scanner, Options
from apkid.rules import RulesManager
@pytest.fixture
def rules_manager():
return RulesManager()
@pytest.fixture
def options():
return Options()
@pytest.fixture
def rules():
return yara.compile(source='rule dummy { condition: true }')
@pytest.fixture
def scanner(rules: yara.Rules, options):
return Scanner(rules=rules, options=options)