mirror of https://github.com/MISP/PyMISPGalaxies
fix: Make sure the tests work with the new unique ID
parent
8df24c179d
commit
751ed3d5be
|
@ -43,10 +43,10 @@ class TestPyMISPGalaxies(unittest.TestCase):
|
||||||
for galaxy_file in glob(os.path.join(self.galaxies.root_dir_galaxies, '*.json')):
|
for galaxy_file in glob(os.path.join(self.galaxies.root_dir_galaxies, '*.json')):
|
||||||
with open(galaxy_file, 'r') as f:
|
with open(galaxy_file, 'r') as f:
|
||||||
galaxy = json.load(f)
|
galaxy = json.load(f)
|
||||||
galaxies_from_files[galaxy['name']] = galaxy
|
galaxies_from_files[galaxy['type']] = galaxy
|
||||||
for name, g in self.galaxies.items():
|
for _, g in self.galaxies.items():
|
||||||
out = g.to_dict()
|
out = g.to_dict()
|
||||||
self.assertDictEqual(out, galaxies_from_files[g.name])
|
self.assertDictEqual(out, galaxies_from_files[g.type])
|
||||||
|
|
||||||
def test_dump_clusters(self):
|
def test_dump_clusters(self):
|
||||||
clusters_from_files = {}
|
clusters_from_files = {}
|
||||||
|
|
Loading…
Reference in New Issue