mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Simpler addon clear mechanism
This should improve test robustness
This commit is contained in:
parent
85526e5370
commit
f5a6499b15
1 changed files with 3 additions and 2 deletions
|
|
@ -123,9 +123,10 @@ class AddonManager:
|
|||
"""
|
||||
Remove all addons.
|
||||
"""
|
||||
for i in self.chain:
|
||||
self.remove(i)
|
||||
for a in self.chain:
|
||||
self.invoke_addon(a, "done")
|
||||
self.lookup = {}
|
||||
self.chain = []
|
||||
|
||||
def get(self, name):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue