JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
failed.
Pyflakes
-
reviewboard/oauth/admin.py (Diff revision 1) Show all issues
Review Request #8884 — Created April 6, 2017 and submitted
During unit tests, it is possible that the
oauth2_provider
module's
admin registrations won't happen before we go to remove their
registration for theApplication
model to replace it with our own. We
now import the module (purely for side effects) in ouroauth.admin
module to ensure that happens.
Ran unit tests.
reviewboard/oauth/admin.py (Diff revision 1) |
---|
You can instead do:
import importlib ... importlib.import_module('oauth2_provider.admin')