diff options
author | Arushit Mudgal <rshtmudgal@gmail.com> | 2018-02-04 02:07:33 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2018-02-03 21:37:33 +0100 |
commit | 91834f98ccb1e586dabb9c269c369a094a00f2f0 (patch) | |
tree | 6ccbdbdd1bf81d3ce2b3cf8c979648eaf255402c /test | |
parent | 773325262790b419e2865adcf9b151f7cbc5d17a (diff) | |
download | mitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.tar.gz mitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.tar.bz2 mitmproxy-91834f98ccb1e586dabb9c269c369a094a00f2f0.zip |
Extend mypy checking, fix #2194 (#2819)
Diffstat (limited to 'test')
-rw-r--r-- | test/examples/test_xss_scanner.py | 8 |
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' |