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

Information

Review Board
release-5.0.x

Reviewers

Tests that create API tokens were updated to inlcude the token_generator_id
and token_info parameters when generating the tokens. This was done by
making mosts tests use the TestCase.create_webapi_token method instead of
directly calling 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
TestCase.create_webapi_token.

Ran the affected unit tests.

Summary ID
Updated tests that create API tokens to use TestCase's built in method for creating tokens.
be8f48d630b68b3c315f5ad5cc3ad287bd5eb095
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
maubin
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (81a8b0d)