Fix tests for ckan 2.2 again with amercaders suggestion.
This commit is contained in:
parent
77f98d5b18
commit
d08f72ad13
|
@ -15,8 +15,13 @@ except ImportError:
|
|||
try:
|
||||
from ckan.new_tests.helpers import assert_in
|
||||
except ImportError:
|
||||
# ckan 2.2 only has it in the legacy test helpers
|
||||
from ckan.tests.helpers import assert_in
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue