Browse Source

Permit to reset hapic context

Bastien Sevajol 6 years ago
parent
commit
b3b215130c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hapic/hapic.py

+ 3 - 0
hapic/hapic.py View File

78
         assert not self._context
78
         assert not self._context
79
         self._context = context
79
         self._context = context
80
 
80
 
81
+    def reset_context(self) -> None:
82
+        self._context = None
83
+
81
     def with_api_doc(self):
84
     def with_api_doc(self):
82
         def decorator(func):
85
         def decorator(func):
83
             @functools.wraps(func)
86
             @functools.wraps(func)