From 77f98d5b18fba5711c6b46e1b07779aff515536a Mon Sep 17 00:00:00 2001 From: David Read Date: Thu, 10 Dec 2015 16:33:09 +0000 Subject: [PATCH] Compatibility with ckan 2.2. --- ckanext/harvest/tests/test_action.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/tests/test_action.py b/ckanext/harvest/tests/test_action.py index 1fc8c23..a6a46b2 100644 --- a/ckanext/harvest/tests/test_action.py +++ b/ckanext/harvest/tests/test_action.py @@ -11,7 +11,13 @@ try: 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: + # ckan 2.2 only has it in the legacy test helpers + from ckan.tests.helpers import assert_in + from ckan import plugins as p from ckan.plugins import toolkit from ckan import model