Sort import statements in tests.
parent
7788ad8583
commit
7e5c8a9409
|
@ -7,7 +7,6 @@ import pytest
|
||||||
from stix2 import (Bundle, Campaign, CustomObject, FileSystemSink,
|
from stix2 import (Bundle, Campaign, CustomObject, FileSystemSink,
|
||||||
FileSystemSource, FileSystemStore, Filter, Identity,
|
FileSystemSource, FileSystemStore, Filter, Identity,
|
||||||
Indicator, Malware, Relationship, properties)
|
Indicator, Malware, Relationship, properties)
|
||||||
|
|
||||||
from stix2.test.constants import (CAMPAIGN_ID, CAMPAIGN_KWARGS, IDENTITY_ID,
|
from stix2.test.constants import (CAMPAIGN_ID, CAMPAIGN_KWARGS, IDENTITY_ID,
|
||||||
IDENTITY_KWARGS, INDICATOR_ID,
|
IDENTITY_KWARGS, INDICATOR_ID,
|
||||||
INDICATOR_KWARGS, MALWARE_ID, MALWARE_KWARGS,
|
INDICATOR_KWARGS, MALWARE_ID, MALWARE_KWARGS,
|
||||||
|
|
|
@ -4,7 +4,6 @@ from stix2 import parse
|
||||||
from stix2.datastore.filters import Filter, apply_common_filters
|
from stix2.datastore.filters import Filter, apply_common_filters
|
||||||
from stix2.utils import STIXdatetime, parse_into_datetime
|
from stix2.utils import STIXdatetime, parse_into_datetime
|
||||||
|
|
||||||
|
|
||||||
stix_objs = [
|
stix_objs = [
|
||||||
{
|
{
|
||||||
"created": "2017-01-27T13:49:53.997Z",
|
"created": "2017-01-27T13:49:53.997Z",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import pytest
|
||||||
|
|
||||||
from stix2.datastore import CompositeDataSource, make_id
|
from stix2.datastore import CompositeDataSource, make_id
|
||||||
from stix2.datastore.filters import Filter
|
from stix2.datastore.filters import Filter
|
||||||
from stix2.datastore.memory import MemorySource, MemorySink
|
from stix2.datastore.memory import MemorySink, MemorySource
|
||||||
|
|
||||||
|
|
||||||
def test_add_remove_composite_datasource():
|
def test_add_remove_composite_datasource():
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
from stix2 import (Bundle, ThreatActor, TAXIICollectionSink,
|
|
||||||
TAXIICollectionSource, TAXIICollectionStore)
|
|
||||||
from stix2.datastore.filters import Filter
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import pytest
|
|
||||||
|
|
||||||
from taxii2client import Collection, _filter_kwargs_to_query_params
|
|
||||||
from medallion.filters.basic_filter import BasicFilter
|
from medallion.filters.basic_filter import BasicFilter
|
||||||
|
import pytest
|
||||||
|
from taxii2client import Collection, _filter_kwargs_to_query_params
|
||||||
|
|
||||||
|
from stix2 import (Bundle, TAXIICollectionSink, TAXIICollectionSource,
|
||||||
|
TAXIICollectionStore, ThreatActor)
|
||||||
|
from stix2.datastore.filters import Filter
|
||||||
|
|
||||||
COLLECTION_URL = 'https://example.com/api1/collections/91a7b528-80eb-42ed-a74d-c6fbd5a26116/'
|
COLLECTION_URL = 'https://example.com/api1/collections/91a7b528-80eb-42ed-a74d-c6fbd5a26116/'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue