<gh_stars>0
from pathlib import Path
from tempfile import TemporaryDirectory

from ratpacdbplot.scripts.compare_wbls_with_gd import compare_wbls_with_gd


def test_compare_wbls_with_gd():
    with TemporaryDirectory() as tmpdir:
        plots = list(compare_wbls_with_gd(output=Path(tmpdir)))
        assert len(plots) > 0
        assert all(img.exists() for p in plots for img in p.images)

from pathlib import Path
from tempfile import TemporaryDirectory

from ratpacdbplot.scripts.compare_wbls_with_gd import compare_wbls_with_gd


def test_compare_wbls_with_gd():
    with TemporaryDirectory() as tmpdir:
        plots = list(compare_wbls_with_gd(output=Path(tmpdir)))
        assert len(plots) > 0
        assert all(img.exists() for p in plots for img in p.images)