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
Conflicts:
	ckan/tests/helpers.py
  • Loading branch information
Psykar authored and amercader committed Aug 26, 2016
1 parent e3d8ae2 commit 00cfee0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/tests/helpers.py
Expand Up @@ -187,7 +187,9 @@ def _apply_config_changes(cls, cfg):
def setup(self):
'''Reset the database and clear the search indexes.'''
reset_db()
search.clear()
if hasattr(self, '_test_app'):
self._test_app.reset()
search.clear_all()

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 00cfee0

Please sign in to comment.