Skip to content

Commit

Permalink
TST Reset all hooks in task_reset
Browse files Browse the repository at this point in the history
This ensures less contamination in the system
  • Loading branch information
luispedro committed Jun 11, 2015
1 parent 63a49f7 commit 8c7cf4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jug/tests/task_reset.py
@@ -1,6 +1,7 @@
from nose.tools import with_setup
import jug.task
from jug.backends.dict_store import dict_store
from jug.hooks import reset_all_hooks

def _setup():
jug.task.Task.store = dict_store()
Expand All @@ -11,5 +12,6 @@ def _teardown():
jug.task.Task.store = None
while jug.task.alltasks:
jug.task.alltasks.pop()
reset_all_hooks()

task_reset = with_setup(_setup, _teardown)

0 comments on commit 8c7cf4f

Please sign in to comment.