-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathconftest.py
More file actions
36 lines (34 loc) · 1.05 KB
/
conftest.py
File metadata and controls
36 lines (34 loc) · 1.05 KB
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
"""Pytest command-line options for mitreattack-python."""
def pytest_addoption(parser):
"""Register pytest options for selecting ATT&CK STIX test data."""
parser.addoption(
"--stix-enterprise",
action="store",
default=None,
help="Path to an Enterprise ATT&CK STIX bundle to use in tests.",
)
parser.addoption(
"--stix-mobile",
action="store",
default=None,
help="Path to a Mobile ATT&CK STIX bundle to use in tests.",
)
parser.addoption(
"--stix-ics",
action="store",
default=None,
help="Path to an ICS ATT&CK STIX bundle to use in tests.",
)
parser.addoption(
"--attack-version",
action="store",
default=None,
help="ATT&CK release version to download and use for STIX-backed tests.",
)
parser.addoption(
"--stix-version",
action="store",
choices=("2.0", "2.1"),
default="2.0",
help="STIX version to download when --attack-version is used. Defaults to 2.0.",
)