Skip to content

Commit

Permalink
Revert "[#547] Resource proxy test changes"
Browse files Browse the repository at this point in the history
This reverts commit fa137ca.

didn't help
  • Loading branch information
tobes committed Apr 3, 2013
1 parent fa137ca commit 5ea2a1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/resourceproxy/tests/test_proxy.py
Expand Up @@ -22,8 +22,8 @@ class TestProxyBasic(tests.WsgiAppCase, unittest.TestCase):
@classmethod
def setup_class(cls):
cls._original_config = config.copy()
config['ckan.plugins'] = 'resource_proxy'
wsgiapp = middleware.make_app(config['global_conf'], **config)
plugins.load('resource_proxy')
cls.app = paste.fixture.TestApp(wsgiapp)

if not cls.serving:
Expand All @@ -37,10 +37,10 @@ def setup_class(cls):

@classmethod
def teardown_class(cls):
plugins.unload('json_preview')
global config
config = cls._original_config
config.clear()
config.update(cls._original_config)
model.repo.rebuild_db()
plugins.reset()

def set_resource_url(self, url):
testpackage = model.Package.get('annakarenina')
Expand Down

0 comments on commit 5ea2a1d

Please sign in to comment.