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,6 +78,9 @@ class Hapic(object):
78 78
         assert not self._context
79 79
         self._context = context
80 80
 
81
+    def reset_context(self) -> None:
82
+        self._context = None
83
+
81 84
     def with_api_doc(self):
82 85
         def decorator(func):
83 86
             @functools.wraps(func)