Skip to content

Commit

Permalink
[#2939] Remove IAuthorizer from plugins test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 11, 2012
1 parent db3b7da commit 226d7fc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ckan/tests/ckantestplugin/ckantestplugin/__init__.py
@@ -1,7 +1,5 @@
from ckan.plugins import SingletonPlugin, implements
from ckan.plugins import IMapper, IRoutes, IPluginObserver
from ckan.plugins import IAuthorizer
import ckan.model as model
from ckan.tests.mock_plugin import MockSingletonPlugin


Expand Down Expand Up @@ -38,13 +36,3 @@ def after_map(self, map):

class PluginObserverPlugin(MockSingletonPlugin):
implements(IPluginObserver)


class AuthorizerPlugin(SingletonPlugin):
implements(IAuthorizer, inherit=True)

def get_roles(self, username, domain_obj):
return [model.authz.Role.ADMIN]

def is_authorized(self, username, action, domain_obj):
return True

0 comments on commit 226d7fc

Please sign in to comment.