aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Make tcp.Client.connect return a context manager that closes the connectionAldo Cortesi2016-06-031-18/+18
|
* Implement a service connection handler counter, use it in Pathod test suiteAldo Cortesi2016-06-031-0/+1
| | | | Lots of failures, but that's a good thing.
* Merge remote-tracking branch 'upstream/master' into testsuiteAldo Cortesi2016-06-031-5/+8
|\
| * Merge remote-tracking branch 'duffer/pathod-lang-generators'Maximilian Hils2016-06-021-5/+8
| |\
| | * Py3: Return bytes from FileGeneratorShadab Zafar2016-06-021-4/+6
| | | | | | | | | | | | and use __getitem__ instead of __getslice__
| | * Py3: Return bytes from RandomGeneratorShadab Zafar2016-06-021-1/+2
| | | | | | | | | | | | and use __getitem__ rather than __getslice__
* | | Satisfy linting godsAldo Cortesi2016-06-021-1/+2
| | |
* | | Silence requests warningsAldo Cortesi2016-06-021-0/+3
| | | | | | | | | | | | Once we convert the rest of the suite to pathoc, this can go.
* | | Reimplement test retrievals on pathoc and ditch requestsAldo Cortesi2016-06-023-11/+27
| | | | | | | | | | | | | | | Requests uses urllib3, which has a connection pool that's not easy to disable (https://github.com/shazow/urllib3/issues/383).
* | | pathod.test shouldn't use the API at allAldo Cortesi2016-06-021-4/+5
| | |
* | | Since we have locks over the logs, use direct access rather than API ↵Aldo Cortesi2016-06-022-5/+4
| | | | | | | | | | | | requests to get to them
* | | Honesty in testingAldo Cortesi2016-06-021-5/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | - Don't skip tests that fail - Don't omit console from coverage I'm working on the pathod races, and can't seem to reproduce the failures locally. Also, let's not kid ourselves about the console coverage - it should be tracked. To improve it, we should measure it. Regressions in coverage of the module should be flagged by CI.
* | Shift a bunch more string-related functions to strutilsAldo Cortesi2016-06-023-23/+23
| |
* | Consolidate some functions to strutils.bytes_to_escaped_strAldo Cortesi2016-06-021-11/+0
| |
* | Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-022-37/+40
| | | | | | | | Extract a number of string and format-related functions to netlib.strutils.
* | Fix non-deterministic test failures in exportAldo Cortesi2016-06-021-2/+4
|/ | | | | We had various places in the code where we relied on incidental order of dict keys. Add a helper to multidict, and fix.
* Merge pull request #1180 from dufferzafar/pathod-baseMaximilian Hils2016-05-311-12/+12
|\ | | | | Python 3 - pathod.language.base
| * Py3: Use byte literals for comparisonShadab Zafar2016-05-311-12/+12
| |
* | be more strict about module namespacesMaximilian Hils2016-05-311-2/+1
|/
* http2.frame -> http2.framereaderAldo Cortesi2016-05-312-10/+10
|
* Fix test failuresAldo Cortesi2016-05-311-1/+1
|
* Satisfy flake8Aldo Cortesi2016-05-314-0/+4
|
* Unify and make symmetric pretty_size and parse_sizeAldo Cortesi2016-05-311-4/+8
|
* Move human-friendly format functions to netlib.human, remove redundant ↵Aldo Cortesi2016-05-314-39/+31
| | | | implementations
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-313-32/+33
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokensAldo Cortesi2016-05-312-12/+12
| | | | Placing this next to its only use.
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-312-22/+22
| | | | A pattern we need to use far more often in the codebase
* Extract url functions from netlib.utils and move to netlib.http.urlAldo Cortesi2016-05-313-67/+68
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-314-47/+47
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* Improve handling of pseudo-headersAldo Cortesi2016-05-311-1/+4
| | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction.
* Fix test import errorAldo Cortesi2016-05-311-1/+2
|
* split mitmproxy.flow into mitmproxy.flow.*Maximilian Hils2016-05-301-21/+21
|
* fixThomas Kriechbaumer2016-05-291-1/+1
|
* fix windows pathsThomas Kriechbaumer2016-05-291-2/+2
|
* fix har testThomas Kriechbaumer2016-05-291-5/+5
|
* fix headers orderThomas Kriechbaumer2016-05-291-1/+1
|
* fix #1162Thomas Kriechbaumer2016-05-291-2/+5
|
* more style cleanupThomas Kriechbaumer2016-05-2952-86/+93
|
* more style cleanupThomas Kriechbaumer2016-05-2911-57/+63
| | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test
* Merge pull request #1172 from cortesi/solidcoreAldo Cortesi2016-05-296-104/+104
|\ | | | | First steps to solidifying the core
| * handle_* -> *Aldo Cortesi2016-05-296-66/+58
| | | | | | | | | | Now that we have the controller.handler decorator, the _handler prefix stutters.
| * Explicitly list all eventsAldo Cortesi2016-05-291-2/+2
| |
| * Flatten ServerMaster into MasterAldo Cortesi2016-05-291-5/+2
| |
| * Merge branch 'master' into solidcoreAldo Cortesi2016-05-2918-28/+21
| |\
| * | Make @controller.handler inheritance-friendlyAldo Cortesi2016-05-281-4/+1
| | | | | | | | | | | | Use this to adapt mitmweb and mitproxy console
| * | Mandate that all handlers must be wrapped, make tests passAldo Cortesi2016-05-282-18/+26
| | | | | | | | | | | | mitmproxy, mitmdump and mitmweb masters still to be done
| * | Sketch out a more solid coreAldo Cortesi2016-05-283-15/+21
| | | | | | | | | | | | | | | - Decorator for handler methods - Stricter checking for double-acks and non-acks
* | | fix testsMaximilian Hils2016-05-284-5/+5
| |/ |/|
* | cleanup imports with flake8Thomas Kriechbaumer2016-05-2817-25/+18
| |
* | fix Python 2 testsMaximilian Hils2016-05-281-2/+2
| |