Add legacy import for CreateTestData

This commit is contained in:
Stefan Oderbolz 2016-01-11 22:35:11 +01:00
parent c141cf44fa
commit e0c3316531
1 changed files with 4 additions and 2 deletions

View File

@ -7,9 +7,11 @@ from ckan.model import Package, Session
from ckan.lib.helpers import url_for,json
from ckan.lib.base import config
from ckan.tests import CreateTestData
#TODO: remove references to old tests
try:
from ckan.tests import CreateTestData
except ImportError:
from ckan.tests.legacy import CreateTestData
try:
from ckan.tests.functional.base import FunctionalTestCase
except ImportError: