Commit Graph

458 Commits

Author SHA1 Message Date
Gabriel Falcão 0008b0c9cb
Merge branch 'kouk-content-length' 2017-02-16 17:36:23 -05:00
Gabriel Falcão 6d26203673 Merge pull request #165 from akun/master
Fixed an error when "Content-Length" is not int like
2017-02-16 17:25:01 -05:00
Konstantinos Koukopoulos c940e0583b
add a test for content-length header with callable body 2017-02-16 17:22:29 -05:00
Konstantinos Koukopoulos d9099192ea
don't overwrite content-length header with callable body 2017-02-16 17:22:26 -05:00
Ц§¡δəητ 618535ca36
Merge branch 'content-length' of github.com:kouk/HTTPretty into kouk-content-length 2017-02-16 17:19:07 -05:00
Andrew Gross 70af1f8cf9 Squashed commit of the following:
commit 352339b3ee
Author: Andrew Gross <andrew.w.gross@gmail.com>
Date:   Tue Oct 11 19:00:22 2016 -0400

    Remove unused imports

commit 226d294d9b
Author: Andrew Gross <andrew.w.gross@gmail.com>
Date:   Tue Oct 11 18:54:20 2016 -0400

    Patch out urllib monkeypatching when installed, adds tests for behavior
2016-10-11 19:22:48 -04:00
Andrew Gross 7c58a3ceff Update HTTP call recording to properly send headers being tested 2016-10-11 17:50:36 -04:00
Gabriel Falcão 7d03149f91 fixing failing test 2016-05-30 23:02:40 -04:00
Gabriel Falcão 987131d8f3 Merge pull request #169 from chris-martin/unittest_TestCase_decorator
Decorate unittest.TestCase setUp/tearDown methods
2016-05-26 16:35:32 -04:00
Gabriel Falcão 17825e17bc Merge pull request #173 from jamielennox/parsed_body
Reparse the request body when setting body
2016-05-26 16:34:53 -04:00
Gabriel Falcão f93c32a632 Merge pull request #285 from hufman/use_tempfile
Use a tempfile instead of a StringIO object
2016-05-26 16:02:26 -04:00
Gabriel Falcão 3f528b8f3d Merge pull request #287 from hufman/dynamic-content-length
Encode callable body length as str and not bytes
2016-05-26 16:00:51 -04:00
Gabriel Falcão e0e0602809 Merge pull request #293 from bhodorog/bugfix/recording-uses-headers-body
Use body and headers when recording upstream requests
2016-05-26 15:51:25 -04:00
Gabriel Falcão 7f1f67d3e7 Merge pull request #294 from grahamc/patch-1
Pass `tests_require` list of packages
2016-05-26 15:50:47 -04:00
Gabriel Falcão 37c7729fc5 Merge pull request #298 from onovy/master
Renamed prefixfree.min.js to prefixfree.js because it's not minified
2016-05-26 15:44:22 -04:00
Ondřej Nový 598bdbb77d Renamed prefixfree.min.js to prefixfree.js because it's not minified 2016-05-24 14:32:13 +02:00
Graham Christensen e5552e646a Pass `tests_require` list of packages
`tests_require` accepts a list of packages, while it was being passed a tuple of packages and dependency links.
2016-04-14 10:09:39 -05:00
Bogdan Hodorog cfdbc78ec8 Use body and headers when recording upstream calls. 2016-04-06 11:28:37 +10:00
Walter Huf 7935ab4bd3 Encode callable body length as str and not bytes
The bytes() constructor, when given an integer, creates a
bytes object of that length, instead of casting the number to a
string representation. This change uses str() to cast the integer,
and then relies on the later utf8() call to convert it to bytes.
2016-02-06 02:15:36 -06:00
Walter Huf 3b09b51ff7 Use a tempfile instead of a StringIO object
This provides a socket.fileno(), so
libraries that call select.poll() work properly.
Also supports mocking huge responses larger than memory, if needed.
2016-02-03 11:45:29 -06:00
Gabriel Falcão a77921aaa2 quit using steadymark, from now on HTTPretty will rely on doctests within the .rst files 2016-01-20 14:13:59 -05:00
Gabriel Falcão 4e7f7c33a5 readme 2016-01-20 13:56:27 -05:00
Gabriel Falcão 06d9ccfbec not running lint with unit tests 2016-01-20 10:12:51 -05:00
Gabriel Falcão 354b6b7de9 New release: 0.8.14 2016-01-18 08:54:44 -05:00
Gabriel Falcão d54939ec21 pep8 2016-01-18 08:54:29 -05:00
Gabriel Falcão 7e57dee713 Merge pull request #262 from darjus-amzn/master
Make Jython SRE_Pattern object recognized
2016-01-12 03:29:46 -02:00
Gabriel Falcão ca03df16d9 Merge pull request #279 from yarikoptic/bf-3.x
BF: no need to byte_type an in which later %s-ed, assume sending bytes registers bytes
2016-01-05 18:16:42 -02:00
Gabriel Falcão ae954b376e Merge pull request #277 from jirikuncar/release-v0.8.13
New release: 0.8.13
2016-01-05 18:15:57 -02:00
Gabriel Falcão bc5a2d226a Merge pull request #281 from grahamc/patch-1
Remove the false Python3 support classifier
2016-01-05 17:36:20 -02:00
Graham Christensen 186010673a Remove the false Python3 support classifier
As the readme states:

    Due to big API incompatibility between python 3.3, 3.4 and 3.5, the author of
    HTTPretty is not supporting python3 officially. You will notice that the travis
    build for python 3 might be broken, and while pull requests fixing py3 support
    are most welcome, it is still not official at least for now.

it is preferable to not advertise support when it doesn't practically exist.
2016-01-05 13:17:53 -06:00
Yaroslav Halchenko 6bb7bf334a BF: PY3 etc -- no need to byte_type an in which later %s-ed, assume sending bytes registers bytes
also adjusted bogus shebang to not be real
2015-12-15 21:12:51 -05:00
Jiri Kuncar 500b8c175f New release: 0.8.13 2015-12-14 22:30:45 +01:00
Gabriel Falcão 8e323b5807 readme 2015-12-14 13:52:55 -02:00
Gabriel Falcão 6efa9934f2 fixing tox 2015-12-14 13:40:41 -02:00
Gabriel Falcão ae699218fd removing tip4commit from readme 2015-12-14 12:43:59 -02:00
Gabriel Falcão dfea99e6d4 Merge pull request #276 from jhaegg/master
Python 3.x compatibility fix
2015-12-14 12:41:27 -02:00
Johan Hägg c54e09b521 Python 3.x compatibility fix
Tuple unpacking removed as of 3.0, see PEP 3113.
2015-12-14 14:02:45 +01:00
Gabriel Falcão f8e89e8ac5 New release: 0.8.12 2015-12-14 09:52:30 -02:00
Gabriel Falcão 0eb53806db ignoring error E901 for py3 2015-12-14 02:49:29 -02:00
Gabriel Falcão 40a7800d89 making the functional tests a bit more permissive 2015-12-14 02:47:42 -02:00
Gabriel Falcão c20ae4b5a2 Merge pull request #274 from miknight/master
Fix reference to development.txt in manifest (#273).
2015-12-14 02:34:20 -02:00
Gabriel Falcão 2bdd8b8af0 make lint ignoring unicode keyword on py3 2015-12-14 02:33:27 -02:00
Gabriel Falcão 8e7e54e423 attempt to disable httpretty in the current process before spawning a subprocess 2015-12-14 02:28:57 -02:00
Gabriel Falcão 92db55640b ignoring error when IOLoop has already started 2015-12-14 02:11:04 -02:00
Michael Knight 50466eabf3 Fix reference to development.txt in manifest (#273). 2015-12-14 14:09:47 +11:00
Gabriel Falcão 4e09d5a331 fixing development.txt 2015-12-13 22:55:44 -02:00
Gabriel Falcão 5610d9ab71 New release: 0.8.11 2015-12-13 22:53:56 -02:00
Gabriel Falcão 55e26ec70c dropping support to python 2.6 and testing against 3.5 2015-12-13 07:59:11 -02:00
Gabriel Falcão 40e07033fd fixing functional test 2015-12-13 07:57:31 -02:00
Gabriel Falcão 18b6604145 bumping steadymark to 0.7.2 2015-12-13 07:52:04 -02:00