Skip to content

Commit

Permalink
import as logic instead of l
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 25, 2012
1 parent 793c260 commit 3b1e670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckanext/jsonpreview/tests/test_preview.py
Expand Up @@ -3,7 +3,7 @@
import paste.fixture
from paste.deploy import appconfig

import ckan.logic as l
import ckan.logic as logic
import ckan.model as model
import ckan.tests as tests
import ckan.plugins as plugins
Expand Down Expand Up @@ -33,9 +33,9 @@ def setup_class(cls):
}

cls.package = model.Package.get('annakarenina')
cls.resource = l.get_action('resource_show')(context, {'id': cls.package.resources[1].id})
cls.resource = logic.get_action('resource_show')(context, {'id': cls.package.resources[1].id})
cls.resource['url'] = pylons.config.get('ckan.site_url', '//localhost:5000')
l.action.update.resource_update(context, cls.resource)
logic.action.update.resource_update(context, cls.resource)

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 3b1e670

Please sign in to comment.