import os

from matplotlib.testing.compare import compare_images

pngs = [f for f in os.listdir('test-data') if f.endswith('.png')]

for png in pngs:
    print(png)
    res = compare_images(os.path.join('test-data', png),
                         os.path.join('outputs', png),
                         17)
    print(res)
