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
Sebastian Pipping
9232915885
docs/usage.rst: Break up a long line
2023-06-08 16:28:34 +02:00
Sebastian Pipping
cbb540029f
docs/usage.rst: Adapt documentation to new code location
2023-06-08 16:28:34 +02:00
Sebastian Pipping
bf30d9a5e5
vcr/unittest: Fix test test_get_vcr_with_matcher
...
Matcher needs attribute __name__ for function vcr.matchers.get_matchers_results .
2023-06-08 16:28:34 +02:00
Sebastian Pipping
f06f71ece4
vcr/unittest: Stop disguising MagicMock as Mock
2023-06-08 16:28:34 +02:00
Sebastian Pipping
1070d417b3
vcr/unittest: Apply 2to3
2023-06-08 16:28:34 +02:00
Sebastian Pipping
46726a9a61
vcr/unittest: Fix import of VCRTestCase in tests
2023-06-08 16:28:34 +02:00
Sebastian Pipping
87db8e69ff
vcr/unittest: Use unitest.mock rather than mock of PyPI
2023-06-08 16:28:34 +02:00
Sebastian Pipping
52701ebca4
vcr/unittest: Make import to vcrpy relative
2023-06-08 16:28:34 +02:00
Sebastian Pipping
69679dc3fc
vcr/unittest: Drop forward imports
...
.. to resolve import ambiguity.
2023-06-08 16:28:34 +02:00
Sebastian Pipping
c13f33b1e0
Add unmodified vcrpy-unittest code
...
Source commit is a2fd7625fde1ea15c8982759b07007aef40424b3.
License is MIT just like vcrpy.
2023-06-08 16:28:34 +02:00
Matt Ghantous
5476dd010c
Casting to BufferedReader no longer needed in test
2023-06-05 23:47:47 -04:00
Matt Ghantous
0add77d5ae
Add read1 method to VCRHTTPResponse
2023-06-05 23:20:52 -04:00