Skip to content

Add a WordPress media-library upload response fixture #40

Description

@yoldaolmak

Problem

Pictovap's WordPress adapter depends on media-library responses from the WordPress REST API. New contributors should be able to verify that mapping without a live WordPress site, credentials, or private media.

Scope

Add one small fixture-driven regression test around WordPressUploader.upload_media().

A good PR should:

  • add a synthetic WordPress media upload response fixture under tests/fixtures/wordpress/;
  • mock the media upload response and the follow-up metadata update request;
  • assert that the returned result preserves media_id, url, alt_text, caption, and provider-safe metadata;
  • keep all URLs, credentials, usernames, and file paths fake;
  • avoid network calls.

Acceptance criteria

  • make contributor-smoke and make contribution-check pass.
  • The new test fails if the WordPress response no longer maps the media ID or source URL correctly.
  • No real WordPress host, token, password, or media URL is required.

Contributor path

This is contribution: no-claim: fork the repo and open a PR directly. No reservation comment is needed.

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: media-libraryWordPress media upload and image-placement workflowarea: wordpress-gutenbergWordPress REST API, Gutenberg input, and block placementcontribution: no-claimIndependent first contribution; open a PR without claiminggood 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