Sebastian Pipping
7e11cfc9e4
Merge pull request #738 from kevin1024/json-loads-py36-plus
...
Make `json.loads` of Python >=3.6 decode bytes by itself
2023-07-11 17:30:39 +02:00
Sebastian Pipping
c95b7264a2
Merge pull request #735 from quasimik/patch-1
...
Fix typo in docs
2023-07-10 18:52:30 +02:00
Sebastian Pipping
8ab8e63e04
test_filter.py: Make test_filter_querystring meaner
2023-07-10 16:34:09 +02:00
Sebastian Pipping
d2c1da9ab7
test_aiohttp.py: Cover filter_query_parameters with aiohttp
2023-07-10 16:34:08 +02:00
Sebastian Pipping
8336d66976
aiohttp_stubs.py: Stop leaking unfiltered URL into cassette responses
2023-07-10 16:11:26 +02:00
Sebastian Pipping
e69b10c2e0
test_matchers.py: Briefly cover chunked transfer encoding
2023-07-08 02:25:51 +02:00
Sebastian Pipping
a6b9a070a5
matchers.py: Decode chunked request bodies
2023-07-08 02:25:51 +02:00
Sebastian Pipping
e35205c5c8
matchers.py: Support transforming the request body multiple times
2023-07-08 01:29:19 +02:00
Sebastian Pipping
05f61ea56c
Make json.loads of Python >=3.6 decode bytes by itself
...
Quoting https://docs.python.org/3/library/json.html#json.loads :
> Changed in version 3.6: s can now be of type bytes or bytearray.
> The input encoding should be UTF-8, UTF-16 or UTF-32.
2023-07-07 20:00:57 +02:00
Michael Liu
943cabb14f
docs/advanced.rst: fix typo
2023-07-04 16:45:49 +08:00
Jair Henrique
4f70152e7c
Enable rule B (flake8-bugbear) on ruff
2023-06-27 17:36:26 -03:00
Jair Henrique
016a394f2c
Enable E, W and F linters for ruff
2023-06-26 20:46:09 -03:00
Jair Henrique
6b2fc182c3
Improve string format
2023-06-26 20:46:09 -03:00
Jair Henrique
a77173c002
Use ruff as linter
2023-06-26 20:46:09 -03:00
Kevin McCarthy
34d5384318
bump version to v5.0.0
v5.0.0
2023-06-26 12:54:39 -05:00
Sebastian Pipping
ad1010d0f8
Merge pull request #695 from kevin1024/drop37
...
Drop support for Python 3.7 (after 2023-06-27)
2023-06-26 18:32:42 +02:00
Amos Ng
d99593bcd3
Split persister errors into CassetteNotFoundError and CassetteDecodeError ( #681 )
2023-06-26 18:27:35 +02:00
Sebastian Pipping
8c03c37df4
Merge pull request #725 from kevin1024/make-assert-is-json-less-misleading
...
assertions.py: Fix mis-leading `assert_is_json`
2023-06-26 17:43:28 +02:00
Jair Henrique
b827cbe2da
Drop support to python 3.7
2023-06-26 11:46:20 -03:00
Kevin McCarthy
92ca5a102c
fix misspelled word
2023-06-26 09:22:16 -05:00
Kevin McCarthy
d2281ab646
version bump to v4.4.0
v4.4.0
2023-06-26 09:17:41 -05:00
Sebastian Pipping
f21c8f0224
assertions.py: Fix mis-leading assert_is_json
...
Parameter name "a_string" was mistaken and function
name "assert_is_json" was less clear than ideal,
given that it explicitly needs bytes unlike json.loads .
2023-06-24 15:59:23 +02:00
Sebastian Pipping
8b97fd6551
Merge pull request #644 from neliseiska/replace_assert_with_raise
...
Replace `assert` with `raise AssertionError`
2023-06-22 22:29:13 +02:00
Sebastian Pipping
29e42211d7
Merge pull request #722 from kevin1024/run-online-tests-only-once
...
main.yml: Run online tests only once (to save runtime)
2023-06-22 15:46:04 +02:00
Sebastian Pipping
6e511b67fd
Merge pull request #723 from kevin1024/issue-719-compression-urllib3-v2
...
Make decompression robust towards already decompressed input (arguably fixes #719 )
2023-06-22 15:45:10 +02:00
Sebastian Pipping
9b6cb1ce23
Merge pull request #721 from kevin1024/issue-714-response-raw-stream-urllib3-v2
...
Make response.raw.stream() work for urllib3 v2 (fixes #714 )
2023-06-22 15:44:29 +02:00
Sebastian Pipping
6a12bd1511
test_requests.py: Cover response.raw.stream()
2023-06-21 14:52:13 +02:00
Sebastian Pipping
3411bedc06
Make response.raw.stream() work for urllib3 v2
2023-06-21 14:52:13 +02:00
Sebastian Pipping
438a65426b
filters.py: Make decompression robust towards decompressed input
2023-06-21 02:28:36 +02:00
Sebastian Pipping
8c6b1fdf38
test_requests.py: Extend coverage of gzip response
...
.. with regard to:
- not crashing with decode_compressed_response==True
- expected cassette content for body string
- expected response content, i.e. proper decompression
2023-06-21 02:28:36 +02:00
Sebastian Pipping
15e9f1868c
main.yml: Run online tests only once
...
Online tests are tests that need access to the Internet
to pass (and hence have @pytest.marker.online decoration).
2023-06-21 00:38:58 +02:00
Sebastian Pipping
7eb235cd9c
Merge pull request #720 from kevin1024/use-python3-command
...
Use python3 (and pip3) command
2023-06-19 15:07:23 +02:00
Sebastian Pipping
d2f2731481
Replace command "pip" with "pip3"
2023-06-18 23:08:17 +02:00
Sebastian Pipping
b2a895cb89
Replace command "python" by "python3"
2023-06-18 23:07:04 +02:00
Sebastian Pipping
ffb2f44236
Merge pull request #718 from kevin1024/enforce-online-marker-completeness
...
Make CI enforce that all online tests are marked with @pytest.mark.online
2023-06-18 23:03:48 +02:00
Sebastian Pipping
d66392a3fb
main.yml: Enforce that use of @pytest.mark.online remains complete
2023-06-18 21:33:30 +02:00
Sebastian Pipping
b9cab239a7
runtests.sh: Fix variable quoting + add exec
2023-06-18 17:40:49 +02:00
Sebastian Pipping
276a41d9b6
Merge pull request #674 from jspricke/pytest.mark.online
...
Mark tests with @pytest.mark.online that need access to the Internet
2023-06-18 17:34:16 +02:00
Jochen Sprickerhof
7007e944ae
pytest.mark.online tests that need internet
2023-06-18 16:52:51 +02:00
Sebastian Pipping
bd112a2385
docs/usage.rst: Fix assertions
...
Symptom was:
> Traceback (most recent call last):
> File "/tmp/tmp.kJAKlLngAX/foo.py", line 6, in <module>
> assert 'Example domains' in response
> TypeError: a bytes-like object is required, not 'str'
2023-06-18 11:14:44 -03:00
Sebastian Pipping
42848285a0
docs/usage.rst: Fix urllib import
...
Symptom was:
> Traceback (most recent call last):
> File "/tmp/tmp.kJAKlLngAX/foo.py", line 5, in <module>
> response = urllib.request.urlopen('http://www.iana.org/domains/reserved ').read()
> AttributeError: module 'urllib' has no attribute 'request'
2023-06-18 11:14:44 -03:00
Sebastian Pipping
e3aae34ef7
Merge pull request #713 from mghantous/mg/read1
...
VCRHTTPResponse Not Working with Biopython 1.81
2023-06-12 13:08:00 +02:00
Sebastian Pipping
f4316d2dae
Merge pull request #712 from kevin1024/integrate-vcrpy-unittest
...
Integrate vcrpy-unittest (alternative to #709 )
2023-06-08 18:09:22 +02:00
Sebastian Pipping
d613a814d3
vcr/unittest: Simplify file layout
...
.. and make "from vcr.unittest import VCRTestCase" work again.
2023-06-08 16:28:34 +02:00
Sebastian Pipping
ce234e503f
docs/usage.rst: Drop needless self-reference
2023-06-08 16:28:34 +02:00
Sebastian Pipping
3527d25ce8
vcr/unittest: Simplify super(C, self) in class C to super()
...
.. for Python 3
2023-06-08 16:28:34 +02:00
Sebastian Pipping
dedb7ec403
Resolve needless inheritence from object (Python 3)
2023-06-08 16:28:34 +02:00
Sebastian Pipping
59263d6025
vcr/unittest: Resolve needless inheritence from object
2023-06-08 16:28:34 +02:00
Sebastian Pipping
2842cabec6
vcr/unittest: Remove unused logger
2023-06-08 16:28:34 +02:00
Sebastian Pipping
ad650a7ee1
vcr/unittest: Apply black formatting
2023-06-08 16:28:34 +02:00