aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-17 10:17:05 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-17 10:17:05 +1300
commitac335057a7829e2972ab6af56fa1d977623d5426 (patch)
tree7ec4accf54780282b542a8ecd7a996bc6a134c1f /test
parentf14ec2d8f043f051db45dd36a1d501788c7818e6 (diff)
downloadmitmproxy-ac335057a7829e2972ab6af56fa1d977623d5426.tar.gz
mitmproxy-ac335057a7829e2972ab6af56fa1d977623d5426.tar.bz2
mitmproxy-ac335057a7829e2972ab6af56fa1d977623d5426.zip
Disable implicit JS test asset generation
The JS test assets depend in a brittle way on the details of the tflow() utility functions. We shouldn't have to fix JS tests when adjusting these. Options: - Manually generate the test assets in a script. - Define the JS assets without using tflow, so they don't unexpextedly vary.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/tools/web/test_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/tools/web/test_app.py b/test/mitmproxy/tools/web/test_app.py
index 248581b9..5afc0bca 100644
--- a/test/mitmproxy/tools/web/test_app.py
+++ b/test/mitmproxy/tools/web/test_app.py
@@ -322,7 +322,7 @@ class TestApp(tornado.testing.AsyncHTTPTestCase):
ws_client2 = yield websocket.websocket_connect(ws_url)
ws_client2.close()
- def test_generate_tflow_js(self):
+ def _test_generate_tflow_js(self):
_tflow = app.flow_to_json(tflow.tflow(resp=True, err=True))
# Set some value as constant, so that _tflow.js would not change every time.
_tflow['client_conn']['id'] = "4a18d1a0-50a1-48dd-9aa6-d45d74282939"