Skip to content

Commit

Permalink
[#1117] use model.repo.delete_all() in test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Aug 11, 2013
1 parent 1b73733 commit 669aefb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckan/new_tests/helpers.py
Expand Up @@ -40,9 +40,7 @@ def reset_db():

# Clean out any data from the db. This prevents tests failing due to data
# leftover from other tests or from previous test runs.
for table in reversed(model.meta.metadata.sorted_tables):
model.meta.Session.execute(table.delete())
model.meta.Session.commit()
model.repo.delete_all()


def call_action(action_name, context=None, **kwargs):
Expand Down

0 comments on commit 669aefb

Please sign in to comment.