diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-12-12 09:06:18 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-12-12 09:13:43 +1300 |
commit | a99bf0814c6ce789164f6a28a4e622aa6e37d72b (patch) | |
tree | a8944e70775bade80d1c6c402a148468b9775b86 /test | |
parent | f8032bf85a2068306da68bb4689dc43bbd013884 (diff) | |
download | mitmproxy-a99bf0814c6ce789164f6a28a4e622aa6e37d72b.tar.gz mitmproxy-a99bf0814c6ce789164f6a28a4e622aa6e37d72b.tar.bz2 mitmproxy-a99bf0814c6ce789164f6a28a4e622aa6e37d72b.zip |
console: clean path prompt handling
- Don't trigger callback if no path is specified
- Expand userdir centrally
- Catch IO errors from callbacks and turn them into status messages
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/console/test_pathedit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/console/test_pathedit.py b/test/mitmproxy/console/test_pathedit.py index 40d55353..b326ed6d 100644 --- a/test/mitmproxy/console/test_pathedit.py +++ b/test/mitmproxy/console/test_pathedit.py @@ -54,7 +54,7 @@ class TestPathEdit: def test_keypress(self): - pe = pathedit.PathEdit() + pe = pathedit.PathEdit("", "") with patch('urwid.widget.Edit.get_edit_text') as get_text, \ patch('urwid.widget.Edit.set_edit_text') as set_text: |