Skip to content

Commit

Permalink
[ckan#2835] toolkit: add test_helpers, test_factories
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jan 14, 2016
1 parent 71ee8fc commit 95b69bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/plugins/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def _initialize(self):
import ckan.common as common
import ckan.lib.datapreview as datapreview
from ckan.exceptions import CkanVersionException
import ckan.tests.helpers as test_helpers
import ckan.tests.factories as test_factories

from paste.deploy import converters
import pylons
Expand Down Expand Up @@ -215,6 +217,10 @@ def _initialize(self):
t['check_ckan_version'] = self._check_ckan_version
t['CkanVersionException'] = CkanVersionException

# for tests in extensions
t['test_helpers'] = test_helpers
t['test_factories'] = test_factories

# check contents list correct
errors = set(t).symmetric_difference(set(self.contents))
if errors:
Expand Down

0 comments on commit 95b69bd

Please sign in to comment.