Update test PR to work with latest code, fix flake8

This commit is contained in:
Donncha Ó Cearbhaill
2022-01-07 17:03:53 +01:00
parent 513e2cc704
commit 54963b0b59
8 changed files with 29 additions and 27 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
import sys
import os
from stix2.v21 import (Indicator, Malware, Relationship, Bundle, DomainName)
from stix2.v21 import (Indicator, Malware, Relationship, Bundle)
if __name__ == "__main__":
@@ -38,4 +38,5 @@ if __name__ == "__main__":
bundle = Bundle(objects=res)
with open("test.stix2", "w+") as f:
f.write(bundle.serialize(pretty=True))
print("test.stix2 file created")