Skip to content

Commit

Permalink
Merge branch '212-module-import-error'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 11, 2015
2 parents 468a195 + 6ef58ad commit 6b23208
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ckanext/harvest/tests/test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@
except ImportError:
from ckan.new_tests import factories as ckan_factories
from ckan.new_tests.helpers import (_get_test_app, reset_db,
FunctionalTestBase, assert_in)
FunctionalTestBase)
try:
from ckan.new_tests.helpers import assert_in
except ImportError:
# for ckan 2.2
try:
from nose.tools import assert_in
except ImportError:
# Python 2.6 doesn't have it
def assert_in(a, b, msg=None):
assert a in b, msg or '%r was not in %r' % (a, b)

from ckan import plugins as p
from ckan.plugins import toolkit
from ckan import model
Expand Down

0 comments on commit 6b23208

Please sign in to comment.