Update to use more of Djblets's new API and testing support.
Review Request #7499 — Created July 7, 2015 and submitted
More of Review Board's code has moved into Djblets in recent changes,
which allows us to remove a lot of code from Review Board. This impacts
the API resources and the unit testing code.It also removes a redundant call to
initialize()in the base API
testcase, which is already called in the base Review Board testcase.
All unit tests pass.
| Description | From | Last Updated |
|---|---|---|
|
'copy' imported but unused |
|
|
|
'sys' imported but unused |
|
|
|
'serializers' imported but unused |
|
|
|
'IntegrityError' imported but unused |
|
|
|
'connections' imported but unused |
|
|
|
'DEFAULT_DB_ALIAS' imported but unused |
|
|
|
'DatabaseError' imported but unused |
|
|
|
'router' imported but unused |
|
|
|
'get_apps' imported but unused |
|
|
|
'Q' imported but unused |
|
|
|
'initialize' imported but unused |
|
- Change Summary:
-
Fixed all the unused imports.
- Commit:
-
f2dcadfb8fb936a6c9ac777c8f9eda71fcfc0d899d7d7fde29c69273914fc928a684400e45c14fbc
Tool: PEP8 Style Checker Processed Files: reviewboard/testing/testcase.py reviewboard/webapi/base.py reviewboard/webapi/tests/base.py Tool: Pyflakes Processed Files: reviewboard/testing/testcase.py reviewboard/webapi/base.py reviewboard/webapi/tests/base.py