Skip to content

Commit

Permalink
test mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed Jun 29, 2024
1 parent f7ea3eb commit 507292a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 507292a

Please sign in to comment.