Path to this page:
./
www/py-requests-mock,
Mock out responses from the requests package
Branch: CURRENT,
Version: 1.12.1,
Package name: py312-requests-mock-1.12.1,
Maintainer: pkgsrc-usersrequests-mock provides a building block to stub out the HTTP requests portions
of your testing code. You should checkout the docs for more information.
Required to run:[
devel/py-setuptools] [
devel/py-requests] [
lang/py-six] [
lang/python37]
Required to build:[
devel/py-pbr] [
pkgtools/cwrappers]
Master sites:
Filesize: 59.474 KB
Version history: (Expand)
- (2024-10-14) Updated to version: py312-requests-mock-1.12.1
- (2024-04-18) Updated to version: py311-requests-mock-1.12.1
- (2023-11-08) Updated to version: py311-requests-mock-1.11.0
- (2023-07-08) Updated to version: py310-requests-mock-1.11.0
- (2022-10-13) Updated to version: py310-requests-mock-1.10.0
- (2022-01-05) Updated to version: py39-requests-mock-1.9.3nb1
CVS history: (Expand)
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2024-10-14 08:46:10 by Thomas Klausner | Files touched by this commit (325) |
Log message:
*: clean-up after python38 removal
|
2024-04-21 15:41:02 by Thomas Klausner | Files touched by this commit (1) |
Log message:
py-requests-mock: add missing tool dependency
|
2024-04-18 09:13:20 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-requests-mock: updated to 1.12.1
1.12.1
Set python_requires to >3 to prevent installation in python2 deployments.
1.12.0
Update copyright year
Remove py2
Allow raw parameter to accept callable like body elements
Improve type definition of Mocker.__call__
Drop PBR Support
fix(mocker.pyi): fix Mocker class type hints
Remove unused six dependency
|
2023-11-07 23:38:10 by Thomas Klausner | Files touched by this commit (112) |
Log message:
*: latest py-sphinx only support Python 3.9+
|
2023-07-08 09:33:35 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-requests-mock: updated to 1.11.0
1.11.0
======
New Features
------------
- Exposes some public type aliases (for type hinting only, they can't be \
instanciated)
for the types intended to be used by `requests_mock` users.
The following types are now exposed:
- `requests_mock.Context` used in callbacks
- `requests_mock.Request` used in callbacks, which is a \
`requests.PreparedRequest` proxy.
- `requests_mock.Callback[T]` which is the callbacks type.
Bug Fixes
---------
- Some typing inconsistencies have been fixed.
Especially for `request` object in signatures which is in fact a \
`requests_mock.Request` object.
- Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing
content length checking on returned bodies in responses from the previous
default of false. However the flag is still available so for compatibility
we can just default the other way.
|
2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319) |
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).
No change to BUILD_DEPENDS as used correctly inside buildlink3.
As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
|
2022-10-13 18:13:43 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-requests-mock: updated to 1.10.0
1.10.0
------
* Add a release note for the RLock
* Allow passing json\_encoder to mocking
* Improvements to Type Hints
* Lint fix for long line exception
* Shorten line length of comments
* Workaround for python2.7 not supporting lock timeout
* Comments to explain reentrant behaviour
* Change to use RLock and set a timeout to prevent infinite deadlocks
* Update homepage/doc URLs of requests library
* Add comment for pytest late loading feature
* pytest plugin should lazy-load requests\_mock
* Add test for threaded race condition
* Use threading.Lock() to prevent race conditions around monkeypatching of \
get\_adapter()
* add GitHub URL for PyPi
* Add reset methods on the Mocker class type
* Avoid using distutils to check pytest version
* YAML quoting
* Support Python 3.10
* Minor changes to code snippet example
* Fix DeprecationWarnings in setup.cfg keys
* a few minor fixes and proposed changes to documentation files
* Improve response-related param type hints
* Explicitly indicate start of keyword-only args
* Fix failing pytest
|