Skip to content

mermaid-render: python: pytest suite with _RUST_AVAILABLE guard #82

Description

@hartsock

Phase: 5 • Branch: mermaid-render/5.4-py-pytest-suite

What

Write tests/test_python_bindings.py mirroring scrybe-mermaid pattern: skip individual tests when _RUST_AVAILABLE is False, otherwise run real round-trip tests.

Files

  • scrybe-mermaid-render/tests/test_python_bindings.py

Tests

  • 5+ pytest cases: import works, render_to_svg returns <svg, embedded <metadata> present, raises on bad input, png feature path is skipped when not built.

Acceptance

  • pytest tests/test_python_bindings.py -v all PASS in a venv with maturin-develop'd wheel.

Refs

#37 gating checklist box "Phase 6" • swarm.toml phase-5 goal 0.


Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmermaid-renderscope: scrybe-mermaid-render (umbrella #37)phase-5scrybe-mermaid-render phase 5 (#37)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions