imports again
parent
fcea810ea1
commit
b3f69bf942
|
@ -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):
|
||||
|
|
|
@ -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')]"
|
||||
|
|
Loading…
Reference in New Issue