diff --git a/tests/test_plot/test_ibom.py b/tests/test_plot/test_ibom.py index 192a1ac6..1bc4992c 100644 --- a/tests/test_plot/test_ibom.py +++ b/tests/test_plot/test_ibom.py @@ -38,9 +38,12 @@ def check_modules(ctx, fname, expected): assert m, text lz = LZString() js = lz.decompressFromBase64(m.group(1)) + # with open('/tmp/dump', 'wt') as f: + # f.write(js) data = json.loads(js) skipped = data['bom']['skipped'] - modules = [m['ref'] for m in data['modules']] + footprints_name = 'modules' if 'modules' in data else 'footprints' + modules = [m['ref'] for m in data[footprints_name]] assert len(modules)-len(skipped) == len(expected) logging.debug("{} components OK".format(len(expected))) for m in expected: