Skip to content

Commit

Permalink
If a test app exists, reset it for each test
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykar authored and amercader committed Aug 26, 2016
1 parent 582bdd7 commit 2014ef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/tests/helpers.py
Expand Up @@ -188,6 +188,8 @@ def _apply_config_changes(cls, cfg):
def setup(self):
'''Reset the database and clear the search indexes.'''
reset_db()
if hasattr(self, '_test_app'):
self._test_app.reset()
search.clear_all()

@classmethod
Expand Down

0 comments on commit 2014ef6

Please sign in to comment.