Add url_name parameter to TestCase.create_http_request
Review Request #12823 — Created Feb. 3, 2023 and submitted — Latest diff uploaded
In order to be able to use
create_http_requestfor tests related to
URL names (for example, extensions or actions that useapply_to), we
need to set the URL name on theResolverMatch. This adds a parameter
to the test helper to let us set that.This also fixes up usage with local sites, where we were setting
Request.local_sitebut notRequest._local_site_name.Testing Done:
Used in conjunction with other changes.More testcase
Used in conjunction with other changes.
| reviewboard/testing/testcase.py |
|---|