imports again

master
Richard Piazza 2018-12-10 13:42:05 -05:00
parent fcea810ea1
commit b3f69bf942
2 changed files with 8 additions and 3 deletions

View File

@ -9,9 +9,14 @@ from stix2patterns.grammars.STIXPatternVisitor import STIXPatternVisitor
from stix2patterns.validator import STIXPatternErrorListener
from antlr4 import CommonTokenStream, InputStream
from stix2.patterns import _BooleanExpression
from stix2.patterns import (BinaryConstant, BooleanConstant, FloatConstant,
FollowedByObservationExpression, HexConstant,
IntegerConstant, RepeatQualifier,
StartStopQualifier, StringConstant,
TimestampConstant, WithinQualifier)
from stix2.patterns import _BooleanExpression # noqa
from .patterns import * # noqa: F405
from .patterns import * # noqa: F403, F401
def collapse_lists(lists):

View File

@ -520,4 +520,4 @@ def test_parsing_qualified_expression():
def test_list_constant():
patt_obj = create_pattern_object("[network-traffic:src_ref.value IN ('10.0.0.0', '10.0.0.1', '10.0.0.2')]")
assert str(patt_obj) == "[network-traffic:src_ref.value IN ('10.0.0.0', '10.0.0.1', '10.0.0.2')]"
assert str(patt_obj) == "[network-traffic:src_ref.value IN ('10.0.0.0', '10.0.0.1', '10.0.0.2')]"