Fix AuthBackend unregistration
Review Request #8286 — Created July 12, 2016 and submitted
The refactoring of the AuthBackend code to use a registry mistakenly
usedRegistry.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
theregister_auth_backendandunregister_auth_backendmethods works
correctly.In addition, the
AuthBackendRegistry.getmethod was removed becuase
theAuthBackendRegistryalready 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. |
|
- Description:
-
The refactoring of the AuthBackend code to use a registry mistakenly
used Registry.unregister_item(), which wasn't the method name thatwas decided on ( Registry.unregister()). This has been fixed and unittests have been added to ensure registration and unregistration through the register_auth_backendandunregister_auth_backendmethods workscorrectly. + + In addition, the
AuthBackendRegistry.getmethod was removed becuase+ the AuthBackendRegistryalready inherits from+ ExceptionFreeGetterMixin, which provides the same behaviour.
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