Update imports to appease isort.

stix2.0
Greg Back 2018-02-21 11:02:08 -06:00
parent 99addbaada
commit b1a020bb38
17 changed files with 2 additions and 17 deletions

View File

@ -7,7 +7,6 @@ import stix2
from .constants import ATTACK_PATTERN_ID from .constants import ATTACK_PATTERN_ID
EXPECTED = """{ EXPECTED = """{
"type": "attack-pattern", "type": "attack-pattern",
"id": "attack-pattern--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061", "id": "attack-pattern--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import CAMPAIGN_ID from .constants import CAMPAIGN_ID
EXPECTED = """{ EXPECTED = """{
"type": "campaign", "type": "campaign",
"id": "campaign--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f", "id": "campaign--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import COURSE_OF_ACTION_ID from .constants import COURSE_OF_ACTION_ID
EXPECTED = """{ EXPECTED = """{
"type": "course-of-action", "type": "course-of-action",
"id": "course-of-action--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f", "id": "course-of-action--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",

View File

@ -6,7 +6,6 @@ import pytest
import stix2 import stix2
VERIS = """{ VERIS = """{
"source_name": "veris", "source_name": "veris",
"url": "https://github.com/vz-risk/VCDB/blob/master/data/json/0001AA7F-C601-424A-B2B8-BE6C9F5164E7.json", "url": "https://github.com/vz-risk/VCDB/blob/master/data/json/0001AA7F-C601-424A-B2B8-BE6C9F5164E7.json",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import IDENTITY_ID from .constants import IDENTITY_ID
EXPECTED = """{ EXPECTED = """{
"type": "identity", "type": "identity",
"id": "identity--311b2d2d-f010-5473-83ec-1edf84858f4c", "id": "identity--311b2d2d-f010-5473-83ec-1edf84858f4c",

View File

@ -8,7 +8,6 @@ import stix2
from .constants import FAKE_TIME, INDICATOR_ID, INDICATOR_KWARGS from .constants import FAKE_TIME, INDICATOR_ID, INDICATOR_KWARGS
EXPECTED_INDICATOR = """{ EXPECTED_INDICATOR = """{
"type": "indicator", "type": "indicator",
"id": "indicator--01234567-89ab-cdef-0123-456789abcdef", "id": "indicator--01234567-89ab-cdef-0123-456789abcdef",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import INTRUSION_SET_ID from .constants import INTRUSION_SET_ID
EXPECTED = """{ EXPECTED = """{
"type": "intrusion-set", "type": "intrusion-set",
"id": "intrusion-set--4e78f46f-a023-4e5f-bc24-71b3ca22ec29", "id": "intrusion-set--4e78f46f-a023-4e5f-bc24-71b3ca22ec29",

View File

@ -4,7 +4,6 @@ import pytest
import stix2 import stix2
LMCO_RECON = """{ LMCO_RECON = """{
"kill_chain_name": "lockheed-martin-cyber-kill-chain", "kill_chain_name": "lockheed-martin-cyber-kill-chain",
"phase_name": "reconnaissance" "phase_name": "reconnaissance"

View File

@ -8,7 +8,6 @@ import stix2
from .constants import FAKE_TIME, MALWARE_ID, MALWARE_KWARGS from .constants import FAKE_TIME, MALWARE_ID, MALWARE_KWARGS
EXPECTED_MALWARE = """{ EXPECTED_MALWARE = """{
"type": "malware", "type": "malware",
"id": "malware--fedcba98-7654-3210-fedc-ba9876543210", "id": "malware--fedcba98-7654-3210-fedc-ba9876543210",

View File

@ -8,7 +8,6 @@ from stix2 import TLP_WHITE
from .constants import MARKING_DEFINITION_ID from .constants import MARKING_DEFINITION_ID
EXPECTED_TLP_MARKING_DEFINITION = """{ EXPECTED_TLP_MARKING_DEFINITION = """{
"type": "marking-definition", "type": "marking-definition",
"id": "marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9", "id": "marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",

View File

@ -3,8 +3,9 @@ import pytest
from stix2 import TLP_AMBER, Malware, exceptions, markings 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 MALWARE_KWARGS as MALWARE_KWARGS_CONST
from .constants import MARKING_IDS
"""Tests for the Data Markings API.""" """Tests for the Data Markings API."""

View File

@ -8,7 +8,6 @@ import stix2
from .constants import (FAKE_TIME, INDICATOR_ID, MALWARE_ID, RELATIONSHIP_ID, from .constants import (FAKE_TIME, INDICATOR_ID, MALWARE_ID, RELATIONSHIP_ID,
RELATIONSHIP_KWARGS) RELATIONSHIP_KWARGS)
EXPECTED_RELATIONSHIP = """{ EXPECTED_RELATIONSHIP = """{
"type": "relationship", "type": "relationship",
"id": "relationship--00000000-1111-2222-3333-444444444444", "id": "relationship--00000000-1111-2222-3333-444444444444",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import INDICATOR_KWARGS, REPORT_ID from .constants import INDICATOR_KWARGS, REPORT_ID
EXPECTED = """{ EXPECTED = """{
"type": "report", "type": "report",
"id": "report--84e4d88f-44ea-4bcd-bbf3-b2c1c320bcb3", "id": "report--84e4d88f-44ea-4bcd-bbf3-b2c1c320bcb3",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import INDICATOR_ID, SIGHTING_ID, SIGHTING_KWARGS from .constants import INDICATOR_ID, SIGHTING_ID, SIGHTING_KWARGS
EXPECTED_SIGHTING = """{ EXPECTED_SIGHTING = """{
"type": "sighting", "type": "sighting",
"id": "sighting--bfbc19db-ec35-4e45-beed-f8bde2a772fb", "id": "sighting--bfbc19db-ec35-4e45-beed-f8bde2a772fb",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import THREAT_ACTOR_ID from .constants import THREAT_ACTOR_ID
EXPECTED = """{ EXPECTED = """{
"type": "threat-actor", "type": "threat-actor",
"id": "threat-actor--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f", "id": "threat-actor--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import TOOL_ID from .constants import TOOL_ID
EXPECTED = """{ EXPECTED = """{
"type": "tool", "type": "tool",
"id": "tool--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f", "id": "tool--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",

View File

@ -7,7 +7,6 @@ import stix2
from .constants import VULNERABILITY_ID from .constants import VULNERABILITY_ID
EXPECTED = """{ EXPECTED = """{
"type": "vulnerability", "type": "vulnerability",
"id": "vulnerability--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061", "id": "vulnerability--0c7b5b88-8ff7-4a4d-aa9d-feb398cd0061",