Skip to content

Commit

Permalink
[#2382] fix broken legacy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Apr 8, 2015
1 parent 463bc3e commit 3b21892
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/tests/legacy/functional/api/model/test_group.py
Expand Up @@ -2,6 +2,7 @@

from ckan import model
from ckan.lib.create_test_data import CreateTestData
from ckan.lib import search

from nose.tools import assert_equal

Expand All @@ -14,6 +15,7 @@ class GroupsTestCase(BaseModelApiTestCase):

@classmethod
def setup_class(cls):
search.clear()
CreateTestData.create()
cls.user_name = u'russianfan' # created in CreateTestData
cls.init_extra_environ(cls.user_name)
Expand Down
2 changes: 2 additions & 0 deletions ckan/tests/legacy/lib/test_dictization_schema.py
@@ -1,6 +1,7 @@
from pprint import pprint, pformat

from ckan.lib.create_test_data import CreateTestData
from ckan.lib import search
from ckan import model
from ckan.lib.dictization.model_dictize import (package_dictize,
group_dictize)
Expand All @@ -18,6 +19,7 @@ def setup(self):

@classmethod
def setup_class(cls):
search.clear()
CreateTestData.create()

@classmethod
Expand Down

0 comments on commit 3b21892

Please sign in to comment.