Skip to content

Commit

Permalink
Revert "Fixed the test_mapper_plugin_fired test so that it runs with …
Browse files Browse the repository at this point in the history
…the version of pyutillib that"

This reverts commit a267347.

Ross was inadvertantly getting the test working with pyutilib 4.4, but we use 4.1 (trunk@1972).
  • Loading branch information
David Read committed Jan 24, 2012
1 parent 631faa8 commit ef6675d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/test_plugins.py
Expand Up @@ -168,15 +168,15 @@ def test_mapper_plugin_fired(self):
config['ckan.plugins'] = 'mapper_plugin'
plugins.load_all(config)
CreateTestData.create_arbitrary([{'name':u'testpkg'}])
mapper_plugin = PluginGlobals.env().plugin_registry['MapperPlugin'].__instance__
mapper_plugin = PluginGlobals.plugin_registry['MapperPlugin'].__instance__
assert len(mapper_plugin.added) == 2 # resource group table added automatically
assert mapper_plugin.added[0].name == 'testpkg'

def test_routes_plugin_fired(self):
local_config = appconfig('config:%s' % config['__file__'], relative_to=conf_dir)
local_config.local_conf['ckan.plugins'] = 'routes_plugin'
app = make_app(local_config.global_conf, **local_config.local_conf)
routes_plugin = PluginGlobals.env().plugin_registry['RoutesPlugin'].__instance__
routes_plugin = PluginGlobals.plugin_registry['RoutesPlugin'].__instance__
assert routes_plugin.calls_made == ['before_map', 'after_map'], \
routes_plugin.calls_made

0 comments on commit ef6675d

Please sign in to comment.