- update to 1.12.1:
* Set python_requires to >3 to prevent installation in python2
deployments.
- update to 1.12.0:
* 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
- switch to run tests with pytest
* Use unittest.mock if available.
OBS-URL: https://build.opensuse.org/request/show/1165815
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=24
* Set python_requires to >3 to prevent installation in python2
deployments.
- update to 1.12.0:
* 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
- switch to run tests with pytest
* Use unittest.mock if available.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=60
- update to 1.11.0:
* 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.
* .. _requests-mock_1.11.0_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.
- drop remove-mock.patch (upstream)
OBS-URL: https://build.opensuse.org/request/show/1129211
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=22
* 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.
* .. _requests-mock_1.11.0_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.
- drop remove-mock.patch (upstream)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=55
- update to 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
OBS-URL: https://build.opensuse.org/request/show/1056828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=19
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=49
- update to 1.9.2:
* Add release note for urlquote fix
* Simple tests to ensure character encoding works
* Use requests to quote URLs
* Remove circleci badge from README
* Restore py.typed file to enable types
* Change tag pattern
* Url Quote the path provided to the mocker
* Use github action to push a release to PyPI (#163)
* Release note for type hints
* Add [PEP 484](https://www.python.org/dev/peps/pep-0484/) type hints
* Mocker.copy: Use correct type when copying mocker
* Run unit tests for pull requests as well
* Add support for Python up to 3.9
* Use Github Actions
* Make is\_bound\_method private
* Add release note for fixed bug
* Correctly handle an explicit zero byte read
* Add missing string delimiter in example
* fix: is\_bound\_method by six
* fix: \`session\` and \`real\_http\` cannot be used at the same time
OBS-URL: https://build.opensuse.org/request/show/894157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=16
* Add release note for urlquote fix
* Simple tests to ensure character encoding works
* Use requests to quote URLs
* Remove circleci badge from README
* Restore py.typed file to enable types
* Change tag pattern
* Url Quote the path provided to the mocker
* Use github action to push a release to PyPI (#163)
* Release note for type hints
* Add [PEP 484](https://www.python.org/dev/peps/pep-0484/) type hints
* Mocker.copy: Use correct type when copying mocker
* Run unit tests for pull requests as well
* Add support for Python up to 3.9
* Use Github Actions
* Make is\_bound\_method private
* Add release note for fixed bug
* Correctly handle an explicit zero byte read
* Add missing string delimiter in example
* fix: is\_bound\_method by six
* fix: \`session\` and \`real\_http\` cannot be used at the same time
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=43
- update to 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 (#139)
* 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 (#105) and mock nesting (#116)
* 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
OBS-URL: https://build.opensuse.org/request/show/814547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=14
* 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 (#139)
* 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 (#105) and mock nesting (#116)
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=39
- update to 1.5.2:
* Fix discovery of pytest version and default
* Add a docstring to the pytest fixture
* Include release note for py.test
* Collapse CircleCI configuration
* Support older pytest versions
* Record value of stream parameter in request history
* Some additional gitignores
* Include reno in circleci publish job
* Prefer readthedocs.io instead of readthedocs.org for doc links
* 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
OBS-URL: https://build.opensuse.org/request/show/682495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-mock?expand=0&rev=10
- New `pygit2.LIBGIT2_VER` tuple
- New objects now support (in)equality comparison and hash
- New references now support (in)equality comparison
- New `paths` optional argument in `Repository.checkout()`
- Fix speed and windows package regression
- Fix deprecation warning
- Documentation fixes
- Add Python classifiers to setup.py
- Speeding up tests in Travis
- Breaking changes:
- Remove deprecated `Reference.get_object()`, use `Reference.peel()` instead
- Move to pytest, drop support for Python 3.3 and cffi 0.x
- New support comparing signatures for (in)equality
- New ``Submodule.head_id``
- New ``Remote.prune(...)``
- New ``pygit2.reference_is_valid_name(...)``
- New ``AlreadyExistsError`` and ``InvalidSpecError``
- New ``Reference.raw_name``, ``Reference.raw_shorthand``, ``Tag.raw_name``,
- Fix decode error in commit messages and signatures
- Fix, raise error in ``Repository.descendant_of(...)`` if commit doesn't exist
- Documentation fixes
- Breaking changes:
- Remove undocumented ``Tag._message``, replaced by ``Tag.raw_message``
- Add support for Python 3.7
- New ``Object.short_id``
- New ``Repository.descendant_of`` and ``Repository.branches.with_commit``
- Fix repository initialization in ``clone_repository(...)``
- Fix several warnings and errors, commits
- Documentation fixes and improvements
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=30
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=17