[wp-trac] [WordPress Trac] #54420: Tests: Mock REST API remote requests

WordPress Trac noreply at wordpress.org
Thu Nov 11 17:43:32 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):

 Thanks for the ticket and the fixes!

 Just noting that [52137] addresses the failure in `test_get_items()`, but
 not in `test_get_items_no_results()`, which also
 [https://github.com/WordPress/wordpress-
 develop/runs/4174016666?check_suite_focus=true#step:20:250 failed in the
 same job] and apparently needs a similar fix.

 Should we move the `pre_http_request` filter into a helper method to be
 reused there?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54420#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list