[session] move context manager logic in the hook controls context manager
The `init_hooks_mode_categories` and `reset_hooks_mode_categories` have no other
user that the context manager itself. Having dedicated public function is not
useful.
# Run all scenarii found in windmill directory
from os.path import join, dirname
from cubicweb.devtools.cwwindmill import (CubicWebWindmillUseCase,
unittest_main)
class CubicWebWindmillUseCase(CubicWebWindmillUseCase):
#test_dir = join(dirname(__file__), "windmill/test_edit_relation.py")
pass
if __name__ == '__main__':
unittest_main()