• 
      

    Ensure that oauth2_provider.admin is registered before ours

    Review Request #8884 — Created April 6, 2017 and submitted

    Information

    Review Board
    release-3.0.x

    Reviewers

    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 the Application model to replace it with our own. We
    now import the module (purely for side effects) in our oauth.admin
    module to ensure that happens.

    Ran unit tests.

    Description From Last Updated

    'oauth2_provider.admin' imported but unused

    reviewbotreviewbot

    You can instead do: import importlib ... importlib.import_module('oauth2_provider.admin')

    chipx86chipx86
    Checks run (1 failed, 2 succeeded)
    JSHint passed.
    PEP8 Style Checker passed.
    Pyflakes failed.

    Pyflakes

    chipx86
    1. 
        
    2. reviewboard/oauth/admin.py (Diff revision 1)
       
       
      Show all issues

      You can instead do:

      import importlib
      
      ...
      
      importlib.import_module('oauth2_provider.admin')
      
    3. 
        
    brennie
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (da2af15)