-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call pook.off in the end of pook.activate wrapper function (#145)
* call pook.off in the end of pook.activate wrapper function * add unit tests for activate as decorator * Update tests/unit/api_test.py * Fix formatting --------- Co-authored-by: sarayourfriend <git@sarayourfriend.pictures>
- Loading branch information
1 parent
e2fa075
commit e95e259
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,6 @@ async def wrapper(*args, **kw): | |
fn(*args, **kw) | ||
finally: | ||
_engine.disable() | ||
_engine.reset() | ||
|
||
return wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters