Skip to content

Commit

Permalink
[#1659] FunctionalTestBase: use reset_db
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jun 23, 2014
1 parent 527e14f commit 6a05b21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions ckan/new_tests/controllers/test_package.py
Expand Up @@ -10,9 +10,6 @@


class TestPackageControllerNew(helpers.FunctionalTestBase):
def setup(self):
helpers.reset_db()

def _get_package_new_page_as_sysadmin(self):
user = factories.Sysadmin()
env = {'REMOTE_USER': user['name'].encode('ascii')}
Expand Down
4 changes: 1 addition & 3 deletions ckan/new_tests/helpers.py
Expand Up @@ -166,9 +166,7 @@ def _apply_config_changes(cls, cfg):
pass

def setup(self):
import ckan.model as model
model.Session.close_all()
model.repo.rebuild_db()
reset_db()

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 6a05b21

Please sign in to comment.