fix tests

This commit is contained in:
Maximilian Hils 2016-08-04 15:39:48 -07:00
parent f89455fd07
commit dcfa7027ae
4 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,6 @@
from __future__ import absolute_import, print_function, division
import itertools
import traceback
import click

View File

@ -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

View File

@ -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",

View File

@ -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