]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
10 years agounzip bodies before comparing. Fixes #261
Kevin McCarthy [Sun, 3 Jul 2016 21:58:01 +0000 (11:58 -1000)]
unzip bodies before comparing.  Fixes #261

10 years agoMerge pull request #247 from dedsm/boto3_support
Kevin McCarthy [Sun, 3 Jul 2016 00:00:02 +0000 (14:00 -1000)]
Merge pull request #247 from dedsm/boto3_support

Adding support for boto3

10 years agoRunning boto3 tests in travis
David de Sousa [Wed, 22 Jun 2016 14:56:32 +0000 (16:56 +0200)]
Running boto3 tests in travis

10 years agoFixing pep8 errors in boto tests
David de Sousa [Wed, 22 Jun 2016 14:54:25 +0000 (16:54 +0200)]
Fixing pep8 errors in boto tests

10 years agoboto3 integration tests
bogdan barna [Wed, 22 Jun 2016 10:51:13 +0000 (13:51 +0300)]
boto3 integration tests

10 years agoAdding support for boto3
David de Sousa [Fri, 11 Mar 2016 10:05:58 +0000 (11:05 +0100)]
Adding support for boto3

10 years agoMerge pull request #260 from foobarna/fix-tests
Kevin McCarthy [Fri, 24 Jun 2016 16:48:51 +0000 (06:48 -1000)]
Merge pull request #260 from foobarna/fix-tests

fix tests in stubs, requests ssl verification and httpbin+flask

10 years agofix tests in stubs, requests ssl verification and httpbin+flask
bogdan barna [Fri, 24 Jun 2016 08:43:01 +0000 (11:43 +0300)]
fix tests in stubs, requests ssl verification and httpbin+flask

10 years agoMerge pull request #259 from nickdirienzo/master
Kevin McCarthy [Wed, 22 Jun 2016 06:45:27 +0000 (20:45 -1000)]
Merge pull request #259 from nickdirienzo/master

Fix deepcopy issue for response headers when `decode_compressed_response` is enabled

10 years agoRemoved requests usage from test
Nick DiRienzo [Tue, 21 Jun 2016 14:14:51 +0000 (07:14 -0700)]
Removed requests usage from test

10 years agoRenamed inside2 to inside
Nick DiRienzo [Tue, 21 Jun 2016 14:00:53 +0000 (07:00 -0700)]
Renamed inside2 to inside

10 years agoFix flake8 issue
Nick DiRienzo [Tue, 21 Jun 2016 13:54:05 +0000 (06:54 -0700)]
Fix flake8 issue

10 years agoUpdated comments
Nick DiRienzo [Tue, 21 Jun 2016 06:43:47 +0000 (23:43 -0700)]
Updated comments

10 years agoAdded a note on the deepcopy
Nick DiRienzo [Tue, 21 Jun 2016 06:36:51 +0000 (23:36 -0700)]
Added a note on the deepcopy

10 years agoAdded regression test
Nick DiRienzo [Tue, 21 Jun 2016 06:23:31 +0000 (23:23 -0700)]
Added regression test

10 years agoMove deepcopy higher to not mutate original headers
Nick DiRienzo [Mon, 20 Jun 2016 23:57:40 +0000 (16:57 -0700)]
Move deepcopy higher to not mutate original headers

10 years agov 1.8.0 v1.8.0
Ivan Malison [Thu, 9 Jun 2016 19:16:14 +0000 (12:16 -0700)]
v 1.8.0

10 years agomissed a httpbin call
Kevin McCarthy [Mon, 2 May 2016 03:15:54 +0000 (17:15 -1000)]
missed a httpbin call

10 years agoMerge pull request #253 from jayvdb/no-pytest-localserver
Kevin McCarthy [Mon, 2 May 2016 02:43:09 +0000 (16:43 -1000)]
Merge pull request #253 from jayvdb/no-pytest-localserver

Remove pytest-localserver from test dependencies

10 years agoRemove pytest-localserver from test dependencies
John Vandenberg [Mon, 2 May 2016 01:55:35 +0000 (08:55 +0700)]
Remove pytest-localserver from test dependencies

pytest-localserver is no longer needed after
the switch to using pytest-httpbin.

10 years agopep8
Kevin McCarthy [Mon, 2 May 2016 00:44:13 +0000 (14:44 -1000)]
pep8

10 years agoFix for Serialization errors with JSON adapter
Aliaksandr Buhayeu [Wed, 2 Dec 2015 13:33:58 +0000 (16:33 +0300)]
Fix for Serialization errors with JSON adapter

This patch aims to fix the issue#222,
where json data in request can not be serialized
because of TypeError in py3

10 years agoMerge pull request #149 from kevin1024/pytest-httpbin
Kevin McCarthy [Mon, 2 May 2016 00:19:54 +0000 (14:19 -1000)]
Merge pull request #149 from kevin1024/pytest-httpbin

WIP: add pytest-httpbin

10 years agoUse pytest-httpbin pytest-httpbin
Kevin McCarthy [Sat, 11 Apr 2015 23:07:17 +0000 (13:07 -1000)]
Use pytest-httpbin

This will help the test flakiness and speed up test runs.

10 years agoMerge pull request #252 from jayvdb/travis-more-versions
Kevin McCarthy [Sun, 1 May 2016 17:20:48 +0000 (07:20 -1000)]
Merge pull request #252 from jayvdb/travis-more-versions

Add Python 3.5 and PyPy 3 to Travis

10 years agoAdd Python 3.5 and PyPy 3 to Travis
John Vandenberg [Sat, 30 Apr 2016 23:29:27 +0000 (06:29 +0700)]
Add Python 3.5 and PyPy 3 to Travis

10 years agoMerge pull request #244 from jaysonsantos/master
Kevin McCarthy [Tue, 26 Apr 2016 12:59:07 +0000 (08:59 -0400)]
Merge pull request #244 from jaysonsantos/master

Avoid concatenating bytes with strings

10 years agoFix/ignore some flake errors
Jayson Reis [Wed, 20 Jan 2016 11:28:46 +0000 (12:28 +0100)]
Fix/ignore some flake errors

10 years agoAdd test to make sure we can post chunked binary data
Jayson Reis [Wed, 20 Jan 2016 11:17:28 +0000 (12:17 +0100)]
Add test to make sure we can post chunked binary data

10 years agoAvoid concatenating bytes with strings
Jayson Reis [Tue, 19 Jan 2016 13:19:03 +0000 (14:19 +0100)]
Avoid concatenating bytes with strings

10 years agoMerge pull request #243 from kevin1024/response_filtering
Ivan 'Goat' Malison [Tue, 12 Jan 2016 01:12:44 +0000 (17:12 -0800)]
Merge pull request #243 from kevin1024/response_filtering

allow filtering by response

10 years agoFix travis check for flakes response_filtering
Ivan Malison [Tue, 12 Jan 2016 00:57:10 +0000 (16:57 -0800)]
Fix travis check for flakes

10 years agoallow filtering by response
Ivan Malison [Mon, 11 Jan 2016 23:53:04 +0000 (15:53 -0800)]
allow filtering by response

10 years agoMerge pull request #242 from koobs/patch-1
Kevin McCarthy [Sun, 10 Jan 2016 17:35:20 +0000 (07:35 -1000)]
Merge pull request #242 from koobs/patch-1

Exclude __pycache__ dirs & compiled files in sdist

10 years agoExclude __pycache__ dirs & compiled files in sdist
Kubilay Kocak [Sun, 10 Jan 2016 15:27:41 +0000 (02:27 +1100)]
Exclude __pycache__ dirs & compiled files in sdist

The current vcrpy sdist on PyPI includes __pycache__ dirs and compiled files which causes tests to fail when running tests via setup.py test

import file mismatch:
imported module 'test_persist' has this __file__ attribute:
  /Users/imalison/Projects/vcrpy/tests/unit/test_persist.py
which is not the same as the test file we want to collect:
  /usr/home/user/repos/freebsd/ports/devel/py-vcrpy/work/vcrpy-1.7.4/tests/unit/test_persist.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

This change recursively excludes these directories and files from future source distributions

10 years agoMerge pull request #234 from tobiowo/decode-compressed-response
Ivan 'Goat' Malison [Thu, 31 Dec 2015 18:18:34 +0000 (10:18 -0800)]
Merge pull request #234 from tobiowo/decode-compressed-response

Decode compressed response option

10 years agoMerge pull request #240 from abhinav/old-tornado
Ivan 'Goat' Malison [Thu, 31 Dec 2015 18:17:01 +0000 (10:17 -0800)]
Merge pull request #240 from abhinav/old-tornado

Fix crashing with Tornado 3

10 years agoFix Tornado support behavior for Tornado 3.
Abhinav Gupta [Sun, 20 Dec 2015 02:18:20 +0000 (18:18 -0800)]
Fix Tornado support behavior for Tornado 3.

Resolves #235.

10 years agoMerge pull request #238 from jayvdb/tox-travis
Kevin McCarthy [Sat, 12 Dec 2015 20:51:07 +0000 (10:51 -1000)]
Merge pull request #238 from jayvdb/tox-travis

Use tox-travis

10 years agoUse tox-travis
John Vandenberg [Sat, 12 Dec 2015 16:45:15 +0000 (03:45 +1100)]
Use tox-travis

dc9cd42 introduced Travis checking of flakes using tox.
However tox.ini only defined 'flakes-py34', so Travis
was only invoking flake8 on Python 3.4, and invoking
py.test on other Python versions.

As tox factors only work properly on the default testenv,
use a generic tox environment 'flakes', and use tox-travis
to select the correct basepython.

10 years agoMerge pull request #229 from jayvdb/flakes
Kevin McCarthy [Sun, 6 Dec 2015 00:06:53 +0000 (14:06 -1000)]
Merge pull request #229 from jayvdb/flakes

Fix pyflakes and pep8 errors

10 years agosupport python 3.4
Olutobi Owoputi [Wed, 2 Dec 2015 22:43:06 +0000 (14:43 -0800)]
support python 3.4

10 years agotests / docs for decode_compressed_response
Olutobi Owoputi [Wed, 2 Dec 2015 20:26:23 +0000 (12:26 -0800)]
tests / docs for decode_compressed_response

10 years agoadd decode_compressed_response option and filter
Olutobi Owoputi [Wed, 2 Dec 2015 20:25:36 +0000 (12:25 -0800)]
add decode_compressed_response option and filter

11 years agoFix pyflakes and pep8 errors
John Vandenberg [Tue, 24 Nov 2015 21:44:33 +0000 (08:44 +1100)]
Fix pyflakes and pep8 errors

Use extra asserts to use previously unused variables in tests,
such as `cass` and `response`.

Fix only pyflakes errors in docs/conf.py

11 years agoMerge pull request #228 from jayvdb/travis-tox
Kevin McCarthy [Wed, 25 Nov 2015 14:23:28 +0000 (09:23 -0500)]
Merge pull request #228 from jayvdb/travis-tox

Use tox for Travis-CI

11 years agoUse tox for Travis-CI
John Vandenberg [Wed, 25 Nov 2015 04:30:23 +0000 (15:30 +1100)]
Use tox for Travis-CI

11 years agoMerge pull request #223 from jayvdb/jessie-fix
Aron Griffis [Tue, 24 Nov 2015 20:14:09 +0000 (15:14 -0500)]
Merge pull request #223 from jayvdb/jessie-fix

Fallback to importing from urllib3

11 years agoMerge pull request #226 from Bjwebb/patch-1
Kevin McCarthy [Sat, 14 Nov 2015 13:22:33 +0000 (07:22 -0600)]
Merge pull request #226 from Bjwebb/patch-1

Fix typo

11 years agoFix typo
Ben Webb [Sat, 14 Nov 2015 07:41:38 +0000 (07:41 +0000)]
Fix typo

11 years agoMerge pull request #196 from agriffis/remove-replace
Aron Griffis [Sun, 8 Nov 2015 00:01:00 +0000 (19:01 -0500)]
Merge pull request #196 from agriffis/remove-replace

Enable header replacement rather than removal

11 years agoAdd documentation for new features of filter_headers, filter_query_parameters and...
Aron Griffis [Sat, 7 Nov 2015 23:50:32 +0000 (18:50 -0500)]
Add documentation for new features of filter_headers, filter_query_parameters and filter_post_data_parameters

11 years agoUpdate VCR params to use new filters.
Aron Griffis [Tue, 25 Aug 2015 02:38:36 +0000 (22:38 -0400)]
Update VCR params to use new filters.

11 years agoAdd replace_post_data_parameters()
Aron Griffis [Tue, 25 Aug 2015 11:15:51 +0000 (07:15 -0400)]
Add replace_post_data_parameters()

11 years agoAdd replace_query_parameters()
Aron Griffis [Tue, 25 Aug 2015 11:15:24 +0000 (07:15 -0400)]
Add replace_query_parameters()

11 years agoAdd replace_headers()
Aron Griffis [Tue, 25 Aug 2015 11:12:08 +0000 (07:12 -0400)]
Add replace_headers()

11 years agoAdd note and link for vcrpy-unittest.
Aron Griffis [Sat, 7 Nov 2015 22:04:56 +0000 (17:04 -0500)]
Add note and link for vcrpy-unittest.

11 years agoBlindly add modules to be documented
Aron Griffis [Sat, 7 Nov 2015 21:58:10 +0000 (16:58 -0500)]
Blindly add modules to be documented

11 years agoAdd PyPI badge.
Aron Griffis [Sat, 7 Nov 2015 21:47:15 +0000 (16:47 -0500)]
Add PyPI badge.

11 years agoRename waffle badge from 'ready' to 'waffle' which seems clearer.
Aron Griffis [Sat, 7 Nov 2015 21:47:06 +0000 (16:47 -0500)]
Rename waffle badge from 'ready' to 'waffle' which seems clearer.

11 years agoSplit README.rst into appropriate docs sections
Aron Griffis [Sat, 7 Nov 2015 21:38:02 +0000 (16:38 -0500)]
Split README.rst into appropriate docs sections

11 years agoUse sphinx_rtd_theme building docs locally
Aron Griffis [Sat, 7 Nov 2015 21:37:16 +0000 (16:37 -0500)]
Use sphinx_rtd_theme building docs locally

11 years agoSwitch to default RtD theme
Aron Griffis [Sat, 7 Nov 2015 20:26:22 +0000 (15:26 -0500)]
Switch to default RtD theme

11 years agoBump docs version to match project version 1.7.4
Aron Griffis [Sat, 7 Nov 2015 20:23:14 +0000 (15:23 -0500)]
Bump docs version to match project version 1.7.4

11 years agoLint cleanup
Ivan Malison [Mon, 26 Oct 2015 03:28:54 +0000 (20:28 -0700)]
Lint cleanup

11 years agov1.7.4 v1.7.4
Ivan Malison [Sun, 18 Oct 2015 23:48:27 +0000 (16:48 -0700)]
v1.7.4

11 years agoFallback to importing from urllib3
John Vandenberg [Thu, 15 Oct 2015 03:56:30 +0000 (14:56 +1100)]
Fallback to importing from urllib3

requests.packages.urllib3 may be literally urllib3
instead of vendored urllib3.

11 years agoMerge pull request #217 from bcen/fix-decoration-no-return
Ivan 'Goat' Malison [Fri, 2 Oct 2015 07:11:20 +0000 (00:11 -0700)]
Merge pull request #217 from bcen/fix-decoration-no-return

Fix use_cassette when used as decorator does not return the wrapped function's return value

11 years agofix decoration when in _handle_function does not return the wrapped function return...
Bocai Cen [Fri, 2 Oct 2015 03:17:15 +0000 (23:17 -0400)]
fix decoration when in _handle_function does not return the wrapped function return value

11 years agoMerge pull request #206 from tyewang/propogate_attribute_changes_to_real_connection_o...
Ivan 'Goat' Malison [Sun, 20 Sep 2015 07:56:54 +0000 (00:56 -0700)]
Merge pull request #206 from tyewang/propogate_attribute_changes_to_real_connection_on_stubs

Attributes set on VCRConnection now also get set on the real_connection

11 years agoAdd TODO and elaborate on comment
Tye Wang [Fri, 18 Sep 2015 16:19:17 +0000 (12:19 -0400)]
Add TODO and elaborate on comment

11 years agosphinx skeleton
Ivan Malison [Sun, 13 Sep 2015 18:26:55 +0000 (11:26 -0700)]
sphinx skeleton

11 years agoAttributes set on VCRConnection now also get set on the real_connection
Tye Wang [Thu, 3 Sep 2015 18:35:28 +0000 (14:35 -0400)]
Attributes set on VCRConnection now also get set on the real_connection

11 years agoMerge pull request #192 from agriffis/insensitive-headers
Ivan 'Goat' Malison [Fri, 28 Aug 2015 21:47:45 +0000 (14:47 -0700)]
Merge pull request #192 from agriffis/insensitive-headers

Make request.headers always a CaseInsensitiveDict.

11 years agotest_boto cleanup
Ivan Malison [Fri, 28 Aug 2015 20:03:09 +0000 (13:03 -0700)]
test_boto cleanup

11 years agoFull image URL in README.rst
Aron Griffis [Fri, 28 Aug 2015 18:46:08 +0000 (14:46 -0400)]
Full image URL in README.rst

...so it shows properly on PyPI

11 years agoMerge pull request #198 from gwillem/patch-1
Aron Griffis [Fri, 28 Aug 2015 17:01:14 +0000 (13:01 -0400)]
Merge pull request #198 from gwillem/patch-1

Add instructions on using libyaml

11 years agoFix a bad merge in README.rst
Aron Griffis [Fri, 28 Aug 2015 16:57:05 +0000 (12:57 -0400)]
Fix a bad merge in README.rst

This change seems to have gotten lost in #200

11 years agoFix typo in release notes test_class_meta
Ivan Malison [Fri, 28 Aug 2015 16:20:54 +0000 (09:20 -0700)]
Fix typo in release notes

11 years agoMerge pull request #201 from agriffis/path-transformer-default
Aron Griffis [Fri, 28 Aug 2015 11:55:13 +0000 (07:55 -0400)]
Merge pull request #201 from agriffis/path-transformer-default

Default path_transformer=None. Fixes #199

11 years agoDefault path_transformer=None. Fixes #199
Aron Griffis [Fri, 28 Aug 2015 11:25:03 +0000 (07:25 -0400)]
Default path_transformer=None. Fixes #199

11 years agoMerge pull request #200 from kevin1024/test_class_meta
Ivan 'Goat' Malison [Fri, 28 Aug 2015 10:19:54 +0000 (03:19 -0700)]
Merge pull request #200 from kevin1024/test_class_meta

Test class meta

11 years agoAutomatically decorate dynamically added methods with auto_decorate
Ivan Malison [Fri, 28 Aug 2015 09:03:50 +0000 (02:03 -0700)]
Automatically decorate dynamically added methods with auto_decorate

11 years agoChanged bash to sh and fix syntax
Willem de Groot [Fri, 28 Aug 2015 09:14:01 +0000 (11:14 +0200)]
Changed bash to sh and fix syntax

Online Github editting is not very convenient after all :)

11 years agoAdd bash code
Willem de Groot [Fri, 28 Aug 2015 09:11:03 +0000 (11:11 +0200)]
Add bash code

11 years agoAdd test_case method to VCR
Ivan Malison [Fri, 28 Aug 2015 08:40:35 +0000 (01:40 -0700)]
Add test_case method to VCR

this method provides a class that can be inherited from to decorate all
test methods on the desired class with use_cassette using the relevant vcr

11 years agoMove badges to top of README.
Ivan Malison [Wed, 26 Aug 2015 18:53:46 +0000 (11:53 -0700)]
Move badges to top of README.

11 years agoSpello on use_cassette, thanks @Diaoul
Aron Griffis [Thu, 27 Aug 2015 17:39:01 +0000 (13:39 -0400)]
Spello on use_cassette, thanks @Diaoul

11 years agoTypoe
Willem de Groot [Thu, 27 Aug 2015 09:20:11 +0000 (11:20 +0200)]
Typoe

11 years agoAdd instructions on using libyaml
Willem de Groot [Thu, 27 Aug 2015 09:19:31 +0000 (11:19 +0200)]
Add instructions on using libyaml

For a 10x speed increase!

11 years agoMove gitter chat with other badges
Aron Griffis [Wed, 26 Aug 2015 21:34:45 +0000 (17:34 -0400)]
Move gitter chat with other badges

11 years agoMerge pull request #197 from gitter-badger/gitter-badge
Ivan 'Goat' Malison [Wed, 26 Aug 2015 18:49:26 +0000 (11:49 -0700)]
Merge pull request #197 from gitter-badger/gitter-badge

Add a Gitter chat badge to README.rst

11 years agoAdded Gitter badge
The Gitter Badger [Wed, 26 Aug 2015 17:29:20 +0000 (17:29 +0000)]
Added Gitter badge

11 years agoAdd HeadersDict, and mark add_header deprecated.
Aron Griffis [Tue, 25 Aug 2015 02:14:38 +0000 (22:14 -0400)]
Add HeadersDict, and mark add_header deprecated.

HeadersDict is a subclass of CaseInsensitiveDict with two new features:

  1. Preserve the case of the header key from the first time it was set.
     This means that later munging won't modify the key case. (You can
     force picking up the new case with `del` followed by setting.)

  2. If the value is a list or tuple, unpack it and store the first
     element. This is the same as how `Request.add_header()` used to work.

For backward compatibility this commit preserves `Request.add_header()` but
marks it deprecated.

11 years agoMerge pull request #194 from agriffis/travis-requests26
Ivan 'Goat' Malison [Mon, 24 Aug 2015 22:14:12 +0000 (15:14 -0700)]
Merge pull request #194 from agriffis/travis-requests26

Add requests-2.6.0 to travis

11 years agoMerge pull request #193 from agriffis/new-travis
Ivan 'Goat' Malison [Mon, 24 Aug 2015 22:13:59 +0000 (15:13 -0700)]
Merge pull request #193 from agriffis/new-travis

Container-based travis for faster tests

11 years agoAdd requests-2.6.0 to travis
Aron Griffis [Mon, 24 Aug 2015 20:48:54 +0000 (16:48 -0400)]
Add requests-2.6.0 to travis

This is tested already in tox, but seems to have been omitted accidentally
from the travis config.

11 years agoContainer-based travis for faster tests
Aron Griffis [Mon, 24 Aug 2015 20:28:29 +0000 (16:28 -0400)]
Container-based travis for faster tests

11 years agoMore compact expression with dict.get()
Aron Griffis [Mon, 24 Aug 2015 18:22:12 +0000 (14:22 -0400)]
More compact expression with dict.get()

11 years agoMake request.headers always a CaseInsensitiveDict.
Aron Griffis [Mon, 24 Aug 2015 16:58:34 +0000 (12:58 -0400)]
Make request.headers always a CaseInsensitiveDict.

Previously request.headers was a normal dict (albeit with the
request.add_header interface) which meant that some code paths would do
case-sensitive matching, for example remove_post_data_parameters which
tests for 'Content-Type'. This change allows all code paths to get the same
case-insensitive treatment.

Additionally request.headers becomes a property to enforce upgrading it to
a CaseInsensitiveDict even if assigned.