aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/contentviews/test_api.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/mitmproxy/contentviews/test_api.py b/test/mitmproxy/contentviews/test_api.py
index c072c86f..3fc06d7c 100644
--- a/test/mitmproxy/contentviews/test_api.py
+++ b/test/mitmproxy/contentviews/test_api.py
@@ -9,7 +9,6 @@ from mitmproxy.test import tutils
class TestContentView(contentviews.View):
name = "test"
- prompt = ("test", "t")
content_types = ["test/123"]
@@ -22,13 +21,6 @@ def test_add_remove():
with pytest.raises(ContentViewException, match="Duplicate view"):
contentviews.add(tcv)
- tcv2 = TestContentView()
- tcv2.name = "test2"
- tcv2.prompt = ("test2", "t")
- # Same shortcut doesn't work either.
- with pytest.raises(ContentViewException, match="Duplicate view shortcut"):
- contentviews.add(tcv2)
-
contentviews.remove(tcv)
assert tcv not in contentviews.views
@@ -86,8 +78,3 @@ def test_get_message_content_view():
r.content = None
desc, lines, err = contentviews.get_message_content_view("raw", r)
assert list(lines) == [[("error", "content missing")]]
-
-
-def test_get_by_shortcut():
- assert contentviews.get_by_shortcut("s")
- assert not contentviews.get_by_shortcut("b")