diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_command_history.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_command_history.py b/test/mitmproxy/addons/test_command_history.py index 847c273d..405b8323 100644 --- a/test/mitmproxy/addons/test_command_history.py +++ b/test/mitmproxy/addons/test_command_history.py @@ -77,6 +77,8 @@ class TestCommandHistory: saved_commands = [cmd for cmd in history.saved_commands] assert saved_commands == ['cmd4', 'cmd3', 'cmd2'] + history.command_history_file.close() + def test_get_next_and_prev(self, tctx): history = command_history.CommandHistory(5) @@ -150,6 +152,8 @@ class TestCommandHistory: assert history.get_next() == '' assert history.get_next() == '' + history.command_history_file.close() + def test_clear(self, tctx): history = command_history.CommandHistory(3) @@ -165,6 +169,8 @@ class TestCommandHistory: assert history.get_prev() == '' assert history.get_prev() == '' + history.command_history_file.close() + def test_filter(self, tctx): history = command_history.CommandHistory(3) @@ -196,3 +202,5 @@ class TestCommandHistory: assert history.get_next() == 'abc' assert history.get_next() == '' assert history.get_next() == '' + + history.command_history_file.close() |