mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
fix tests
This commit is contained in:
parent
f89455fd07
commit
dcfa7027ae
@ -1,7 +1,6 @@
|
||||
from __future__ import absolute_import, print_function, division
|
||||
|
||||
import itertools
|
||||
import traceback
|
||||
|
||||
import click
|
||||
|
||||
|
@ -3,14 +3,12 @@ from __future__ import absolute_import, print_function, division
|
||||
import math
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import urwid
|
||||
from typing import Optional, Union # noqa
|
||||
|
||||
from mitmproxy import contentviews
|
||||
from mitmproxy import controller
|
||||
from mitmproxy import exceptions
|
||||
from mitmproxy import models
|
||||
from mitmproxy import utils
|
||||
from mitmproxy.console import common
|
||||
|
@ -9,6 +9,7 @@ from netlib.http import http1, http2, status_codes, multipart
|
||||
__all__ = [
|
||||
"Request",
|
||||
"Response",
|
||||
"Message",
|
||||
"Headers", "parse_content_type",
|
||||
"decoded",
|
||||
"http1", "http2", "status_codes", "multipart",
|
||||
|
@ -224,7 +224,7 @@ def test_get_content_view():
|
||||
view_auto.side_effect = ValueError
|
||||
|
||||
desc, lines, err = cv.get_content_view(
|
||||
cv.get("JSON"),
|
||||
cv.get("Auto"),
|
||||
b"[1, 2",
|
||||
)
|
||||
assert err
|
||||
|
Loading…
Reference in New Issue
Block a user