From 8e347acd47c21e6df0685511b0006dc27fbfa07af39ce086ef3dc0d27ac3f42a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 Jun 2020 09:12:09 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-requests-mock?expand=0&rev=39 --- python-requests-mock.changes | 30 ++++++++++++++++++++++++++++++ python-requests-mock.spec | 4 ++-- requests-mock-1.7.0.tar.gz | 3 --- requests-mock-1.8.0.tar.gz | 3 +++ 4 files changed, 35 insertions(+), 5 deletions(-) delete mode 100644 requests-mock-1.7.0.tar.gz create mode 100644 requests-mock-1.8.0.tar.gz diff --git a/python-requests-mock.changes b/python-requests-mock.changes index ae1e1ba..be2e1f4 100644 --- a/python-requests-mock.changes +++ b/python-requests-mock.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Sun Jun 14 09:11:15 UTC 2020 - Dirk Mueller + +- 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 + ------------------------------------------------------------------- Sun Sep 15 11:17:30 UTC 2019 - Jan Engelhardt diff --git a/python-requests-mock.spec b/python-requests-mock.spec index 077720b..3755036 100644 --- a/python-requests-mock.spec +++ b/python-requests-mock.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-mock # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-mock -Version: 1.7.0 +Version: 1.8.0 Release: 0 Summary: Module to mock out responses from the requests package License: Apache-2.0 diff --git a/requests-mock-1.7.0.tar.gz b/requests-mock-1.7.0.tar.gz deleted file mode 100644 index 1c4936a..0000000 --- a/requests-mock-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88d3402dd8b3c69a9e4f9d3a73ad11b15920c6efd36bc27bf1f701cf4a8e4646 -size 51705 diff --git a/requests-mock-1.8.0.tar.gz b/requests-mock-1.8.0.tar.gz new file mode 100644 index 0000000..271fb0b --- /dev/null +++ b/requests-mock-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e68f46844e4cee9d447150343c9ae875f99fa8037c6dcf5f15bf1fe9ab43d226 +size 59794