[wp-trac] [WordPress Trac] #54420: Tests: Mock REST API remote requests
WordPress Trac
noreply at wordpress.org
Wed Dec 15 19:59:49 UTC 2021
#54420: Tests: Mock REST API remote requests
------------------------------+-----------------------------
Reporter: hellofromTonya | Owner: hellofromTonya
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 6.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"52382" 52382]:
{{{
#!CommitTicketReference repository="" revision="52382"
Tests: Mock the HTTP request response in `download_url()` tests.
This aims to speed up the tests and minimize unrelated failures by
avoiding an unnecessary external HTTP request, while still performing the
intended functionality checks.
Update similar helpers in some other tests to use more consistent
terminology.
Follow-up to [37907], [46175], [51626].
See #54420, #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54420#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list