Fix pycodestyle/isort issues
parent
845934033e
commit
5427e79d71
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import ATTACK_PATTERN_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "attack-pattern",
|
||||
"id": "attack-pattern--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import CAMPAIGN_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "campaign",
|
||||
"id": "campaign--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import COURSE_OF_ACTION_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "course-of-action",
|
||||
"id": "course-of-action--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
|
||||
|
|
|
@ -6,7 +6,6 @@ import pytest
|
|||
|
||||
import stix2
|
||||
|
||||
|
||||
VERIS = """{
|
||||
"source_name": "veris",
|
||||
"url": "https://github.com/vz-risk/VCDB/blob/master/data/json/0001AA7F-C601-424A-B2B8-BE6C9F5164E7.json",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import IDENTITY_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "identity",
|
||||
"id": "identity--311b2d2d-f010-5473-83ec-1edf84858f4c",
|
||||
|
|
|
@ -8,7 +8,6 @@ import stix2
|
|||
|
||||
from .constants import FAKE_TIME, INDICATOR_ID, INDICATOR_KWARGS
|
||||
|
||||
|
||||
EXPECTED_INDICATOR = """{
|
||||
"type": "indicator",
|
||||
"id": "indicator--01234567-89ab-cdef-0123-456789abcdef",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import INTRUSION_SET_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "intrusion-set",
|
||||
"id": "intrusion-set--4e78f46f-a023-4e5f-bc24-71b3ca22ec29",
|
||||
|
|
|
@ -4,7 +4,6 @@ import pytest
|
|||
|
||||
import stix2
|
||||
|
||||
|
||||
LMCO_RECON = """{
|
||||
"kill_chain_name": "lockheed-martin-cyber-kill-chain",
|
||||
"phase_name": "reconnaissance"
|
||||
|
|
|
@ -8,7 +8,6 @@ import stix2
|
|||
|
||||
from .constants import FAKE_TIME, MALWARE_ID, MALWARE_KWARGS
|
||||
|
||||
|
||||
EXPECTED_MALWARE = """{
|
||||
"type": "malware",
|
||||
"id": "malware--fedcba98-7654-3210-fedc-ba9876543210",
|
||||
|
|
|
@ -8,7 +8,6 @@ from stix2 import TLP_WHITE
|
|||
|
||||
from .constants import MARKING_DEFINITION_ID
|
||||
|
||||
|
||||
EXPECTED_TLP_MARKING_DEFINITION = """{
|
||||
"type": "marking-definition",
|
||||
"id": "marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",
|
||||
|
|
|
@ -3,8 +3,9 @@ import pytest
|
|||
|
||||
from stix2 import TLP_AMBER, Malware, exceptions, markings
|
||||
|
||||
from .constants import FAKE_TIME, MALWARE_ID, MARKING_IDS
|
||||
from .constants import FAKE_TIME, MALWARE_ID
|
||||
from .constants import MALWARE_KWARGS as MALWARE_KWARGS_CONST
|
||||
from .constants import MARKING_IDS
|
||||
|
||||
"""Tests for the Data Markings API."""
|
||||
|
||||
|
|
|
@ -1174,7 +1174,7 @@ def test_new_version_with_related_objects():
|
|||
'type': 'ipv4-addr',
|
||||
'value': '127.0.0.1/32'
|
||||
},
|
||||
'domain':{
|
||||
'domain': {
|
||||
'type': 'domain-name',
|
||||
'value': 'example.com',
|
||||
'resolves_to_refs': ['src_ip']
|
||||
|
|
|
@ -8,7 +8,6 @@ import stix2
|
|||
from .constants import (FAKE_TIME, INDICATOR_ID, MALWARE_ID, RELATIONSHIP_ID,
|
||||
RELATIONSHIP_KWARGS)
|
||||
|
||||
|
||||
EXPECTED_RELATIONSHIP = """{
|
||||
"type": "relationship",
|
||||
"id": "relationship--00000000-1111-2222-3333-444444444444",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import INDICATOR_KWARGS, REPORT_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "report",
|
||||
"id": "report--84e4d88f-44ea-4bcd-bbf3-b2c1c320bcb3",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import INDICATOR_ID, SIGHTING_ID, SIGHTING_KWARGS
|
||||
|
||||
|
||||
EXPECTED_SIGHTING = """{
|
||||
"type": "sighting",
|
||||
"id": "sighting--bfbc19db-ec35-4e45-beed-f8bde2a772fb",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import THREAT_ACTOR_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "threat-actor",
|
||||
"id": "threat-actor--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import TOOL_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "tool",
|
||||
"id": "tool--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
|
||||
|
|
|
@ -7,7 +7,6 @@ import stix2
|
|||
|
||||
from .constants import VULNERABILITY_ID
|
||||
|
||||
|
||||
EXPECTED = """{
|
||||
"type": "vulnerability",
|
||||
"id": "vulnerability--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061",
|
||||
|
|
Loading…
Reference in New Issue