Cache lookups of LocalSites in the API unit tests.

Review Request #6084 — Created July 8, 2014 and submitted — Latest diff uploaded

Information

Review Board
master
47c57e5...

Reviewers

We fetch LocalSites quite a lot in the API unit tests. This attempts to
reduce the number of queries by caching and returning them after they've
already been queried once.

Unit tests pass.

reviewboard/testing/testcase.py
reviewboard/webapi/tests/base.py
reviewboard/webapi/tests/test_default_reviewer.py
reviewboard/webapi/tests/test_hosting_service_account.py
reviewboard/webapi/tests/test_review_group.py
reviewboard/webapi/tests/test_review_group_user.py
reviewboard/webapi/tests/test_review_request.py
reviewboard/webapi/tests/test_review_request_draft.py
reviewboard/webapi/tests/test_user.py
Loading...