mirror of https://github.com/MISP/PyMISP
fix: Python 2.7 tests
parent
cd2995a212
commit
1f2b5f1329
|
@ -292,6 +292,8 @@ class TestMISPEvent(unittest.TestCase):
|
|||
ref_json = json.load(f)
|
||||
self.assertEqual(self.mispevent.to_json(sort_keys=True, indent=2), json.dumps(ref_json, sort_keys=True, indent=2))
|
||||
|
||||
'''
|
||||
# Reenable that the 1st of jan 2020.
|
||||
@unittest.skipIf(sys.version_info < (3, 6), 'Not supported on python < 3.6')
|
||||
def test_object_templates(self):
|
||||
me = MISPEvent()
|
||||
|
@ -311,7 +313,7 @@ class TestMISPEvent(unittest.TestCase):
|
|||
if 'categories' in entry:
|
||||
subset = set(entry['categories']).issubset(me.describe_types['categories'])
|
||||
self.assertTrue(subset, f'{t_json["name"]} - {obj_relation}')
|
||||
|
||||
'''
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue