diff --git a/pymisp/tools/reportlab_generator.py b/pymisp/tools/reportlab_generator.py index e1c284e..b5ab2b4 100644 --- a/pymisp/tools/reportlab_generator.py +++ b/pymisp/tools/reportlab_generator.py @@ -6,6 +6,7 @@ import base64 import logging import pprint from io import BytesIO + import sys if sys.version_info.major >= 3: @@ -1207,7 +1208,6 @@ class Object(): # ---------------------------------------------------------------------- - def create_flowable_table_from_objects(self, misp_event, config=None): ''' Returns a list of flowables representing the list of objects of a misp event. @@ -1315,7 +1315,6 @@ class Galaxy(): return flowable_table - def create_flowable_table_from_galaxies(self, misp_event): ''' Returns a Table (flowable) to add to a pdf, representing the list of galaxies of an event or a misp event diff --git a/tests/test_reportlab.py b/tests/test_reportlab.py index 3f4cf2f..6ceaa92 100644 --- a/tests/test_reportlab.py +++ b/tests/test_reportlab.py @@ -35,6 +35,7 @@ class TestMISPEvent(unittest.TestCase): self.moduleconfig = ["MISP_base_url_for_dynamic_link", "MISP_name_for_metadata", "Activate_textual_description", "Activate_galaxy_description"] + def init_event(self): self.mispevent.info = 'This is a test' self.mispevent.distribution = 1