Skip to content

Add a realistic Gutenberg blocks fixture for VisualBrief regression tests #24

Description

@yoldaolmak

Why

The Gutenberg input is a real editor surface. Its parser needs a representative fixture, not only a minimal string embedded in a test.

Scope

Add one fixture under tests/fixtures/ containing ordinary Gutenberg comments, paragraphs, two H2 headings, inline formatting, and a list or quote block. Add a focused test proving VisualBrief.from_html() extracts the title, H2 targets, and section excerpts.

Reference

  • tests/unit/test_wordpress_input.py
  • src/pictovap/core/primitives.py (VisualBrief.from_html)

Done when

  • The fixture contains no credentials or real private content.
  • The test asserts both H2 heading targets and at least one meaningful excerpt.
  • pytest tests/unit/test_wordpress_input.py -q --no-cov passes.

No claim is needed. Fork and open a PR directly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: wordpress-gutenbergWordPress REST API, Gutenberg input, and block placementcontribution: no-claimIndependent first contribution; open a PR without claimingexamplesExample profiles and articlesgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions