Fix AuthBackend unregistration

Review Request #8286 — Created July 12, 2016 and submitted

Information

Review Board
release-3.0.x
8539b05...

Reviewers

The refactoring of the AuthBackend code to use a registry mistakenly
used Registry.unregister_item(), which wasn't the method name that
was decided on (Registry.unregister()). This has been fixed and unit
tests have been added to ensure registration and unregistration through
the register_auth_backend and unregister_auth_backend methods works
correctly.

In addition, the AuthBackendRegistry.get method was removed becuase
the AuthBackendRegistry already inherits from
ExceptionFreeGetterMixin, which provides the same behaviour.

Ran unit tests.

Description From Last Updated

The removal of this function isn't discussed in your description of the change.

daviddavid
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/accounts/backends.py
        reviewboard/accounts/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/accounts/backends.py
        reviewboard/accounts/tests.py
    
    
  2. 
      
david
  1. 
      
  2. reviewboard/accounts/backends.py (Diff revision 1)
     
     

    The removal of this function isn't discussed in your description of the change.

  3. 
      
brennie
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (f8fc559)
Loading...