From 507292aa620308994058e2d6b8e76df5b71acf7c Mon Sep 17 00:00:00 2001 From: Josh Karpel Date: Fri, 28 Jun 2024 22:24:08 -0500 Subject: [PATCH] test mermaid --- tests/test_config.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index b8d1245..d199ddf 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -18,12 +18,13 @@ random_color, ) +EXAMPLES = list((Path(__file__).parent.parent / "docs" / "examples").iterdir()) -@pytest.mark.parametrize( - "example", list((Path(__file__).parent.parent / "docs" / "examples").iterdir()) -) -def test_config_examples_parse(example: Path) -> None: - Config.from_file(example) + +@pytest.mark.parametrize("example", EXAMPLES) +def test_can_generate_mermaid_from_examples(example: Path) -> None: + for flow in Config.from_file(example).resolve().values(): + flow.mermaid() def test_can_make_style_from_random_color() -> None: