Skip to content

Commit

Permalink
Close connections, clean and init db in test module setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Jul 16, 2013
1 parent 4a16f49 commit 1504472
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/new_tests/logic/action/test_update.py
Expand Up @@ -5,10 +5,10 @@
import ckan.new_tests.logic as logic
import ckan.new_tests.test_data as test_data

def teardown_module():
print "Rebuilding db"
model.repo.rebuild_db()
print "db rebuilt"
def setup_module():
model.Session.close_all()
model.repo.clean_db()
model.repo.init_db()

# Tests for user_update:
#
Expand Down

0 comments on commit 1504472

Please sign in to comment.