removing debug lines; attemting to fix a Travis test error
parent
2399ee62ec
commit
52a052d4dd
|
@ -297,7 +297,6 @@ class MemorySource(DataSource):
|
|||
|
||||
if stix_data["type"] == "bundle":
|
||||
for stix_obj in stix_data["objects"]:
|
||||
print(stix_obj)
|
||||
_add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=stix_data["spec_version"]))
|
||||
else:
|
||||
_add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=version))
|
||||
|
|
|
@ -223,8 +223,8 @@ def test_remove_custom_stix_property():
|
|||
mal_nc = stix2.utils.remove_custom_stix(mal)
|
||||
|
||||
assert "x_custom" not in mal_nc
|
||||
assert stix2.utils.parse_into_datetime(mal["modified"], precision="millisecond") < stix2.utils.parse_into_datetime(mal_nc["modified"],
|
||||
precision="millisecond")
|
||||
assert stix2.utils.parse_into_datetime(mal["modified"], precision="microsecond") < stix2.utils.parse_into_datetime(mal_nc["modified"],
|
||||
precision="microsecond")
|
||||
|
||||
|
||||
def test_remove_custom_stix_object():
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Utility functions and classes for the stix2 library."""
|
||||
# HACK
|
||||
from collections import Mapping
|
||||
import copy
|
||||
import datetime as dt
|
||||
|
|
Loading…
Reference in New Issue