./devel/py-requests-mock, Mock out responses from the requests package

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.8.0, Package name: py37-requests-mock-1.8.0, Maintainer: pkgsrc-users

requests-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:

SHA1: 2ff311f6542091b0df72e485a3b559071937db8d
RMD160: 60952e442286478f73da16567cd0108b29c45cb1
Filesize: 58.393 KB

Version history: (Expand)


CVS history: (Expand)


   2020-05-16 18:35:25 by Adam Ciarcinski | Files touched by this commit (7)
Log message:
pytest from versioned deps.
   2020-05-13 16:37:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.8.0

1.8.0
* Remove requests 2.3 compatibility code
* Add release notes for reset function
* Add release note for session scoped mock
* Allow passing session as postiional argument
* Create bound method instead of a wrapper
* Added reset\_mock to \_RequestHistoryTracker and Adapter
* doc on session Mockers
* doc on nesting Mockers
* fix README.rst typo
* suggest Mocker for users unfamiliar with adapters
* update examples to mount adapter on 'mock://'
* fix global/session mock interactions and real\_http
* Added installation instructions
* Add release note for nested mocking
* fix redirects and mock nesting
* Mark IOReader object closed when using a stream
* Add the default response reason if not set
* Don't check that proxies are set in test
* Add StackOverflow tag to README
* Mention pytest fixture on the README
* Add background information to pytest doc
* docs: update examples to match Read the Docs
* Expose real\_http as a public property
* fix py27 error
* easier session scoped mock
   2019-10-21 23:45:40 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Switch sphinx to versioned deps.
   2019-09-02 09:34:54 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.7.0

1.7.0
* Keep blank values query string values on request history
* Add release notes for requests version pin
* Keep blank values
* Pin requests version to <3
* Add known issue for cookies in Sessions
* logger added to adapter.py
   2019-04-30 11:34:25 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.6.0

1.6.0
* Fix PEP8 failure in test\_adapter
* Respect user provided content encoding type
* Update minimum requests version to 2.3
* Added support for purl
* Add testing for Python 3.7 & PyPy3
* Drop \_matcher from request pickled state
* Clarify the pytest configuration documentation
* Update mocker.rst
   2018-07-24 12:09:22 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.5.2

1.5.2:
Prelude
Fix py.test plugin with py.test < 3.0

Bug Fixes
Fixed a bug relating to how the pytest version was being discovered that meant \ 
new versions of pytest were being treated as old versions and would receive bad \ 
configuration.
The py.test plugin was broken when using py.test < 3.0. The version of \ 
py.test that ships in EPEL is only 2.7 so we need to make sure we support at \ 
least that version.

1.5.1:
New Features
The stream parameter is recorded when the request is sent and available in \ 
request history in the same was as parameters like verify or timeout.
   2018-05-17 12:30:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-requests-mock: updated to 1.5.0

1.5.0
* Add release note describe repository migration
* Add pytest plugin
* Include release-notes in documentation
* Another attempt at circleci tags
* Only try and push to pypi on a tag
* Update all pypi.python.org URLs to pypi.org
* Add pypi upload configuration to circleci
* Move tests outside of package to top level directory
* Remove zuul.yaml as we're not using zuul anymore
* Add CircleCI badge to README
* Remove links to launchpad bug reporting
* Remove .gitreview
* Unpin sphinx dependency
* Add circleci testing configuration
* Use set literals throughout project
* Prefer https:// links over http:// in docs and comments
* Fix last\_request examples
* Fix spelling mistakes
* Move Zuul jobs in-tree
   2017-12-10 09:45:40 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.4.0

1.4.0
-----
* allow an adapter to be passed to a Mocker object
* Rename [wheel] section to [bdist\_wheel] as the former is legacy
* Include license file in the generated wheel package
* Add testing for newer Python versions 3.5 and 3.6
* Return a separate copy for each call to decorator
* Add string representation to \_RequestObjectProxy