Skip to content

Commit 95b69bd

Browse files
committed
[ckan#2835] toolkit: add test_helpers, test_factories
1 parent 71ee8fc commit 95b69bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: ckan/plugins/toolkit.py

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def _initialize(self):
8989
import ckan.common as common
9090
import ckan.lib.datapreview as datapreview
9191
from ckan.exceptions import CkanVersionException
92+
import ckan.tests.helpers as test_helpers
93+
import ckan.tests.factories as test_factories
9294

9395
from paste.deploy import converters
9496
import pylons
@@ -215,6 +217,10 @@ def _initialize(self):
215217
t['check_ckan_version'] = self._check_ckan_version
216218
t['CkanVersionException'] = CkanVersionException
217219

220+
# for tests in extensions
221+
t['test_helpers'] = test_helpers
222+
t['test_factories'] = test_factories
223+
218224
# check contents list correct
219225
errors = set(t).symmetric_difference(set(self.contents))
220226
if errors:

0 commit comments

Comments
 (0)