Kevin McCarthy
5678b13b47
Fix ruff SIM117: use combined with statement
2025-12-08 09:19:48 -05:00
Kevin McCarthy
48f5f84f86
Fix ruff linting issues in aiohttp tests
2025-12-08 09:16:46 -05:00
Leonardo Rochael Almeida
31d8c3498b
aiohttp: Allow both data and json arguments ( #624 )
...
If at least one of them is `None`.
Previously, a `data=None` parameter would cause the `json` parameter to
be ignored, resulting in an empty request body payload on the cassette.
2025-12-08 09:13:51 -05:00
Mathieu Virbel
3f78330c1e
fix: usage of io-like interface with VCR.py ( #906 )
...
* fix: usage of io-like interface with VCR.py
* Update tests/integration/test_aiohttp.py
Co-authored-by: Jair Henrique <jair.henrique@gmail.com >
---------
Co-authored-by: Jair Henrique <jair.henrique@gmail.com >
2025-12-05 15:45:49 -05:00
Jair Henrique
bb690833bc
Enables SIM ruff lint
2025-11-19 12:18:05 -03:00
Jair Henrique
73eed94c47
Drops Python 3.9 support
2025-11-19 12:18:05 -03:00
Jair Henrique
a6698ed060
Fix aiohttp tests
2024-12-28 13:42:54 -03:00
Thomas Grainger
f5597fa6c1
use pytest_httbin.certs.where() for cafile
2024-09-18 22:36:17 +01:00
Thomas Grainger
2b3247b3df
remove redundant load_cert_chain
2024-09-18 22:35:15 +01:00
Thomas Grainger
d123a5e8d0
replace fixture with constant
2024-09-18 22:34:48 +01:00
Thomas Grainger
e2815fbc88
move httbin_ssl_context fixture into the one place it's used
2024-09-18 22:31:36 +01:00
Thomas Grainger
80614dbd00
fix resource warning due to pytest-asyncio
2023-12-15 13:51:52 +00:00
Thomas Grainger
cf765928ac
remove redundant contextlib import
2023-12-15 13:35:31 +00:00
Thomas Grainger
895ae205ca
use asyncio.run to run coroutines
2023-12-15 11:39:51 +00:00
Parker Hancock
f5fc7aac22
fix tests
2023-12-08 16:38:33 -03:00
Sebastian Pipping
d2c1da9ab7
test_aiohttp.py: Cover filter_query_parameters with aiohttp
2023-07-10 16:34:08 +02: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
a77173c002
Use ruff as linter
2023-06-26 20:46:09 -03:00
Jair Henrique
b827cbe2da
Drop support to python 3.7
2023-06-26 11:46:20 -03:00
Jochen Sprickerhof
7007e944ae
pytest.mark.online tests that need internet
2023-06-18 16:52:51 +02:00
Sebastian Pipping
43484e7cff
test_aiohttp.py: Make cookie tests use pytest-httpbin ( #706 )
...
.. to make them faster and more robust.
2023-05-26 01:16:20 +02:00
Jair Henrique
14cef83c15
Move some tests to use mockbin instead httpbin
2023-05-11 17:03:54 -03:00
Jair Henrique
77da67ef0a
Remove duplicated fixture
2023-05-11 10:05:50 -03:00
Jair Henrique
0eece7f96e
Add isort to code lint
2022-10-09 11:35:37 -03:00
Andre Ambrosio Boechat
be1035fd5d
Check if query params in the string URL are also included in the final params
2022-06-13 09:54:20 -03:00
Andre Ambrosio Boechat
7add8c0bab
Don't assume params to be a dictionary
...
aiohttp also fails with pass parameter values with types other than
string, integer or float.
2022-06-13 09:54:20 -03:00
Paulo Romeira
7e73085331
aiohttp: Add tests to aiohttp allow_redirects option
2022-04-19 11:10:41 -03:00
Jair Henrique
9d414c8841
Fix lint erros
2020-10-05 09:45:55 -05:00
Paulo Romeira
a249781b97
aiohttp: Use record_mode enum in tests
2020-07-15 13:52:00 -05:00
Paulo Romeira
4897a8e692
aiohttp: Fix linting
2020-07-15 13:52:00 -05:00
Paulo Romeira
15d79e5b78
aiphttp: Add test for cookies on redirect
2020-07-15 13:52:00 -05:00
Paulo Romeira
69cecdbda7
aiohttp: Fix tests
2020-07-15 13:52:00 -05:00
Paulo Romeira
837992767e
aiohttp: Fix tests
2020-07-15 13:52:00 -05:00
Paulo Romeira
77d838e0fc
aiohttp: Fix code linting
2020-07-15 13:52:00 -05:00
Paulo Romeira
5362db2ebb
aiohttp: Update tests
2020-07-15 13:52:00 -05:00
Paulo Romeira
5242e68cd1
aiohttp: Fix code linting
2020-07-15 13:52:00 -05:00
Paulo Romeira
062126e50c
tests/aiohttp: Add cookies test
2020-07-15 13:52:00 -05:00
Jair Henrique
2f53776ffb
Use mockbin to fix redirect test
2020-07-15 12:18:23 -05:00
Jean-Sebastien Roy
6e040030b8
Do not redirect on 304 for aiohttp
2020-01-27 11:24:02 -05:00
Nick DiRienzo
9ec19dd966
aiohttp: fix multiple requests being replayed per request and add support for request_info on mocked responses ( #495 )
...
* Fix how redirects are handled so we can have requests with the same URL be used distinctly
* Add support for request_info. Remove `past` kwarg.
* Remove as e to make linter happy
* Add unreleased 3.0.0 to changelog.
2019-12-13 15:01:17 +11:00
Josh Peak
7caf29735a
Format project with black ( #467 )
...
Format with line length 110 to match flake8
make black part of linting check
Update travis spec for updated black requirements
Add diff output for black on failure
update changelog
2019-08-24 11:36:35 +10:00
Laurent Mazuel
e3b7116564
aiohttp headers are case insensitive ( #461 )
...
* aiohttp headers are case insensitive
* flakes
2019-07-31 09:17:54 +10:00
Stefan Tjarks
988ac335d4
Fix log format bug
...
`{}` is not a valid placeholder in log formatting.
2019-07-17 07:46:40 -07:00
Luiz Menezes
792c5c4558
Record intermediary redirect responses on aiohttp stub
2019-07-09 18:39:36 -03:00
Stefan T
a17624a464
Record json kwarg in aiohttp request ( #412 )
...
* Record `json` kwarg in aiohttp request
Aiohttp supports `data` and `json` parameters to make a request.
Aiohttp enforces that only one is used make a request.
* Log when aiohttp stub makes request to live server
resolves : #406
* Record aiohttp `auth` request kwarg
Aiohttp request supports basic auth via the `auth` method parameter.
It is set as a request header by aiohttp ClientRequest.
2019-07-05 10:57:39 +10:00
Luiz Menezes
bbab27ed1b
Use primitive types when recording cassettes using aiohttp stub ( #454 )
2019-07-05 10:52:08 +10:00
Stanislav Evseev
7c14d81ab1
CHANGE: return None from json if body is empty
2019-07-01 14:25:38 +02:00
Steinn Eldjárn Sigurðarson
e8a9a65bef
Make test use stream output to test MockStream interface
2019-06-28 13:35:05 +00:00
Steinn Eldjárn Sigurðarson
6c41b8b723
Use built-in helpers to avoid use of async keywords which cause syntax errors on 2.x
2019-06-28 13:30:14 +00:00