aboutsummaryrefslogtreecommitdiffstats
path: root/test/examples/test_xss_scanner.py
diff options
context:
space:
mode:
authorArushit Mudgal <rshtmudgal@gmail.com>2018-02-04 02:07:33 +0530
committerMaximilian Hils <git@maximilianhils.com>2018-02-03 21:37:33 +0100
commit91834f98ccb1e586dabb9c269c369a094a00f2f0 (patch)
tree6ccbdbdd1bf81d3ce2b3cf8c979648eaf255402c /test/examples/test_xss_scanner.py
parent773325262790b419e2865adcf9b151f7cbc5d17a (diff)
downloadmitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.tar.gz
mitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.tar.bz2
mitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.zip
Extend mypy checking, fix #2194 (#2819)
Diffstat (limited to 'test/examples/test_xss_scanner.py')
-rw-r--r--test/examples/test_xss_scanner.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/examples/test_xss_scanner.py b/test/examples/test_xss_scanner.py
index e15d7e10..8cf06a2a 100644
--- a/test/examples/test_xss_scanner.py
+++ b/test/examples/test_xss_scanner.py
@@ -343,10 +343,10 @@ class TestXSSScanner():
monkeypatch.setattr("mitmproxy.ctx.log", logger)
xss.log_SQLi_data(None)
assert logger.args == []
- xss.log_SQLi_data(xss.SQLiData(b'https://example.com',
- b'Location',
- b'Oracle.*Driver',
- b'Oracle'))
+ xss.log_SQLi_data(xss.SQLiData('https://example.com',
+ 'Location',
+ 'Oracle.*Driver',
+ 'Oracle'))
assert logger.args[0] == '===== SQLi Found ====='
assert logger.args[1] == 'SQLi URL: https://example.com'
assert logger.args[2] == 'Injection Point: Location'