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: