Updated tests that create API tokens to use TestCase's built in method for creating tokens.
Review Request #12626 — Created Sept. 22, 2022 and submitted
Tests that create API tokens were updated to inlcude the
token_infoparameters when generating the tokens. This was done by
making mosts tests use the
TestCase.create_webapi_tokenmethod instead of
WebAPIToken.generate_token. These parameters will be
required in Djblets 4.0 so we should add these in now to avoid unnecessary
deprecation warnings while running tests and so that we don't forget later.
This change also allows explicit local sites to be passed to
Ran the affected unit tests.