Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed Jun 29, 2024
1 parent 507292a commit e54f6d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ exclude_lines =
def __repr__
if self\.debug

case never:
assert_never
raise AssertionError
raise NotImplementedError

Expand Down
1 change: 1 addition & 0 deletions synth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ triggers:
- tests/
- docs/examples/
- pyproject.toml
- .coveragerc
4 changes: 2 additions & 2 deletions synthesize/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ def mermaid(self) -> str:
seen_watches.add(h)
lines.append(f'w_{h}[("{text}")]')
lines.append(f"w_{h} -->|👁| {node.id}")
case _:
assert_never(node.trigger)
case never:
assert_never(never)

return "\n ".join(lines).strip()

Expand Down
3 changes: 2 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
random_color,
)

EXAMPLES = list((Path(__file__).parent.parent / "docs" / "examples").iterdir())
ROOT = Path(__file__).parent.parent
EXAMPLES = [*(ROOT / "docs" / "examples").iterdir(), ROOT / "synth.yaml"]


@pytest.mark.parametrize("example", EXAMPLES)
Expand Down

0 comments on commit e54f6d9

Please sign in to comment.