Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-responsemock for 
openSUSE:Factory checked in at 2022-04-22 21:54:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-responsemock (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-responsemock.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-responsemock"

Fri Apr 22 21:54:38 2022 rev:3 rq:971974 version:1.1.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-responsemock/python-pytest-responsemock.changes
    2020-11-08 20:59:21.604283064 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-responsemock.new.1538/python-pytest-responsemock.changes
  2022-04-22 21:55:51.538915709 +0200
@@ -1,0 +2,7 @@
+Thu Apr 21 20:43:51 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 1.1.1
+  * Made responses 0.19.0 compatible
+  * Dropped support for Python 3.6
+
+-------------------------------------------------------------------

Old:
----
  pytest-responsemock-1.0.1.tar.gz

New:
----
  pytest-responsemock-1.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-responsemock.spec ++++++
--- /var/tmp/diff_new_pack.GhFq3c/_old  2022-04-22 21:55:51.910916133 +0200
+++ /var/tmp/diff_new_pack.GhFq3c/_new  2022-04-22 21:55:51.914916137 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-responsemock
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,25 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 Name:           python-pytest-responsemock
-Version:        1.0.1
+Version:        1.1.1
 Release:        0
 Summary:        Simplified requests calls mocking for pytest
 License:        BSD-3-Clause
 URL:            https://github.com/idlesign/pytest-responsemock
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-responsemock/pytest-responsemock-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pytest
-Requires:       python-responses
+Requires:       python-responses >= 0.18.0
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
-BuildRequires:  %{python_module responses}
+BuildRequires:  %{python_module responses >= 0.18.0}
 # /SECTION
 %python_subpackages
 
@@ -57,6 +58,7 @@
 %files %{python_files}
 %doc AUTHORS CHANGELOG README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/responsemock
+%{python_sitelib}/pytest_responsemock-%{version}*-info
 
 %changelog

++++++ pytest-responsemock-1.0.1.tar.gz -> pytest-responsemock-1.1.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/CHANGELOG 
new/pytest-responsemock-1.1.1/CHANGELOG
--- old/pytest-responsemock-1.0.1/CHANGELOG     2020-10-10 08:54:23.000000000 
+0200
+++ new/pytest-responsemock-1.1.1/CHANGELOG     2022-03-10 02:47:33.000000000 
+0100
@@ -2,6 +2,16 @@
 =============================
 
 
+v1.1.1 [2022-03-10]
+-------------------
+* Made responses 0.19.0 compatible.
+
+
+v1.1.0 [2022-02-04]
+-------------------
+! Dropped support for Python 3.6.
+
+
 v1.0.1 [2020-10-10]
 -------------------
 * Handle setting 'Content-Type' header correctly.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/LICENSE 
new/pytest-responsemock-1.1.1/LICENSE
--- old/pytest-responsemock-1.0.1/LICENSE       2020-03-05 12:30:15.000000000 
+0100
+++ new/pytest-responsemock-1.1.1/LICENSE       2022-02-04 13:14:29.000000000 
+0100
@@ -1,4 +1,4 @@
-Copyright (c) 2020, Igor `idle sign` Starikov
+Copyright (c) 2020-2022, Igor `idle sign` Starikov
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/PKG-INFO 
new/pytest-responsemock-1.1.1/PKG-INFO
--- old/pytest-responsemock-1.0.1/PKG-INFO      2020-10-10 08:55:14.965842500 
+0200
+++ new/pytest-responsemock-1.1.1/PKG-INFO      2022-03-10 02:47:39.000000000 
+0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: pytest-responsemock
-Version: 1.0.1
+Version: 1.1.1
 Summary: Simplified requests calls mocking for pytest
 Home-page: https://github.com/idlesign/pytest-responsemock
 Author: Igor `idle sign` Starikov
@@ -10,7 +10,7 @@
         ===================
         https://github.com/idlesign/pytest-responsemock
         
-        |release| |lic| |ci| |coverage|
+        |release| |lic| |coverage|
         
         .. |release| image:: 
https://img.shields.io/pypi/v/pytest-responsemock.svg
             :target: https://pypi.python.org/pypi/pytest-responsemock
@@ -18,9 +18,6 @@
         .. |lic| image:: https://img.shields.io/pypi/l/pytest-responsemock.svg
             :target: https://pypi.python.org/pypi/pytest-responsemock
         
-        .. |ci| image:: 
https://img.shields.io/travis/idlesign/pytest-responsemock/master.svg
-            :target: https://travis-ci.org/idlesign/pytest-responsemock
-        
         .. |coverage| image:: 
https://img.shields.io/coveralls/idlesign/pytest-responsemock/master.svg
             :target: https://coveralls.io/r/idlesign/pytest-responsemock
         
@@ -42,7 +39,7 @@
         Requirements
         ------------
         
-        * Python 3.6+
+        * Python 3.7+
         
         
         Usage
@@ -68,6 +65,24 @@
         
                     assert result.ok
                     assert result.content == b'Nice'
+                    
+                # mock consequent requests
+                with response_mock([
+                    'GET http://some.domain -> 200 :Nice',
+                    'GET http://other.domain -> 200 :Sweet',
+                ]):
+                    for_test()
+                    requests.get('http://other.domain')
+        
+        
+        Use with ``pytest-datafixtures``:
+        
+        .. code-block:: python
+        
+            def test_me(response_mock, datafix_read):
+        
+                with response_mock(f"GET http://some.domain -> 200 
:{datafix_read('myresponse.html')}"):
+                    ...
         
         
         Describe response header fields using multiline strings:
@@ -116,10 +131,12 @@
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Framework :: Pytest
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Testing
+Requires-Python: >=3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/README.rst 
new/pytest-responsemock-1.1.1/README.rst
--- old/pytest-responsemock-1.0.1/README.rst    2020-07-26 11:59:05.000000000 
+0200
+++ new/pytest-responsemock-1.1.1/README.rst    2022-02-04 13:23:15.000000000 
+0100
@@ -2,7 +2,7 @@
 ===================
 https://github.com/idlesign/pytest-responsemock
 
-|release| |lic| |ci| |coverage|
+|release| |lic| |coverage|
 
 .. |release| image:: https://img.shields.io/pypi/v/pytest-responsemock.svg
     :target: https://pypi.python.org/pypi/pytest-responsemock
@@ -10,9 +10,6 @@
 .. |lic| image:: https://img.shields.io/pypi/l/pytest-responsemock.svg
     :target: https://pypi.python.org/pypi/pytest-responsemock
 
-.. |ci| image:: 
https://img.shields.io/travis/idlesign/pytest-responsemock/master.svg
-    :target: https://travis-ci.org/idlesign/pytest-responsemock
-
 .. |coverage| image:: 
https://img.shields.io/coveralls/idlesign/pytest-responsemock/master.svg
     :target: https://coveralls.io/r/idlesign/pytest-responsemock
 
@@ -34,7 +31,7 @@
 Requirements
 ------------
 
-* Python 3.6+
+* Python 3.7+
 
 
 Usage
@@ -60,6 +57,24 @@
 
             assert result.ok
             assert result.content == b'Nice'
+            
+        # mock consequent requests
+        with response_mock([
+            'GET http://some.domain -> 200 :Nice',
+            'GET http://other.domain -> 200 :Sweet',
+        ]):
+            for_test()
+            requests.get('http://other.domain')
+
+
+Use with ``pytest-datafixtures``:
+
+.. code-block:: python
+
+    def test_me(response_mock, datafix_read):
+
+        with response_mock(f"GET http://some.domain -> 200 
:{datafix_read('myresponse.html')}"):
+            ...
 
 
 Describe response header fields using multiline strings:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-responsemock-1.0.1/pytest_responsemock.egg-info/PKG-INFO 
new/pytest-responsemock-1.1.1/pytest_responsemock.egg-info/PKG-INFO
--- old/pytest-responsemock-1.0.1/pytest_responsemock.egg-info/PKG-INFO 
2020-10-10 08:55:14.000000000 +0200
+++ new/pytest-responsemock-1.1.1/pytest_responsemock.egg-info/PKG-INFO 
2022-03-10 02:47:39.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: pytest-responsemock
-Version: 1.0.1
+Version: 1.1.1
 Summary: Simplified requests calls mocking for pytest
 Home-page: https://github.com/idlesign/pytest-responsemock
 Author: Igor `idle sign` Starikov
@@ -10,7 +10,7 @@
         ===================
         https://github.com/idlesign/pytest-responsemock
         
-        |release| |lic| |ci| |coverage|
+        |release| |lic| |coverage|
         
         .. |release| image:: 
https://img.shields.io/pypi/v/pytest-responsemock.svg
             :target: https://pypi.python.org/pypi/pytest-responsemock
@@ -18,9 +18,6 @@
         .. |lic| image:: https://img.shields.io/pypi/l/pytest-responsemock.svg
             :target: https://pypi.python.org/pypi/pytest-responsemock
         
-        .. |ci| image:: 
https://img.shields.io/travis/idlesign/pytest-responsemock/master.svg
-            :target: https://travis-ci.org/idlesign/pytest-responsemock
-        
         .. |coverage| image:: 
https://img.shields.io/coveralls/idlesign/pytest-responsemock/master.svg
             :target: https://coveralls.io/r/idlesign/pytest-responsemock
         
@@ -42,7 +39,7 @@
         Requirements
         ------------
         
-        * Python 3.6+
+        * Python 3.7+
         
         
         Usage
@@ -68,6 +65,24 @@
         
                     assert result.ok
                     assert result.content == b'Nice'
+                    
+                # mock consequent requests
+                with response_mock([
+                    'GET http://some.domain -> 200 :Nice',
+                    'GET http://other.domain -> 200 :Sweet',
+                ]):
+                    for_test()
+                    requests.get('http://other.domain')
+        
+        
+        Use with ``pytest-datafixtures``:
+        
+        .. code-block:: python
+        
+            def test_me(response_mock, datafix_read):
+        
+                with response_mock(f"GET http://some.domain -> 200 
:{datafix_read('myresponse.html')}"):
+                    ...
         
         
         Describe response header fields using multiline strings:
@@ -116,10 +131,12 @@
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Framework :: Pytest
 Classifier: Intended Audience :: Developers
 Classifier: Topic :: Software Development :: Testing
+Requires-Python: >=3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-responsemock-1.0.1/pytest_responsemock.egg-info/requires.txt 
new/pytest-responsemock-1.1.1/pytest_responsemock.egg-info/requires.txt
--- old/pytest-responsemock-1.0.1/pytest_responsemock.egg-info/requires.txt     
2020-10-10 08:55:14.000000000 +0200
+++ new/pytest-responsemock-1.1.1/pytest_responsemock.egg-info/requires.txt     
2022-03-10 02:47:39.000000000 +0100
@@ -1,2 +1,2 @@
 pytest
-responses>=0.6.0
+responses>=0.18.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/responsemock/__init__.py 
new/pytest-responsemock-1.1.1/responsemock/__init__.py
--- old/pytest-responsemock-1.0.1/responsemock/__init__.py      2020-10-10 
08:54:23.000000000 +0200
+++ new/pytest-responsemock-1.1.1/responsemock/__init__.py      2022-03-10 
02:47:33.000000000 +0100
@@ -1,6 +1,6 @@
 
 
-VERSION = (1, 0, 1)
+VERSION = (1, 1, 1)
 """Application version number tuple."""
 
 VERSION_STR = '.'.join(map(str, VERSION))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/responsemock/utils.py 
new/pytest-responsemock-1.1.1/responsemock/utils.py
--- old/pytest-responsemock-1.0.1/responsemock/utils.py 2020-10-10 
06:44:52.000000000 +0200
+++ new/pytest-responsemock-1.1.1/responsemock/utils.py 2022-03-10 
02:41:25.000000000 +0100
@@ -52,11 +52,11 @@
                 this_makes_requests()
 
     :param rules: One or several rules for response.
-    :param bypass: Whether to to bypass (disable) mocking.
+    :param bypass: Whether to bypass (disable) mocking.
     :param kwargs: Additional keyword arguments to pass to `RequestsMock`.
 
     """
-    from responses import RequestsMock, UNSET
+    from responses import RequestsMock
 
     if bypass:
 
@@ -105,7 +105,12 @@
                         if val:
                             headers[dec(key.strip())] = dec(val)
 
-                content_type = headers.pop('Content-Type', UNSET)
+                add_kwargs = {}
+
+                content_type = headers.pop('Content-Type', None)
+
+                if content_type:
+                    add_kwargs['content_type'] = content_type
 
                 directives = list(
                     filter(
@@ -129,7 +134,7 @@
                     body=response,
                     status=status,
                     adding_headers=headers or None,
-                    content_type=content_type,
+                    **add_kwargs
                 )
 
             yield mock
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/setup.cfg 
new/pytest-responsemock-1.1.1/setup.cfg
--- old/pytest-responsemock-1.0.1/setup.cfg     2020-10-10 08:55:14.965842500 
+0200
+++ new/pytest-responsemock-1.1.1/setup.cfg     2022-03-10 02:47:39.000000000 
+0100
@@ -2,9 +2,6 @@
 release = clean --all sdist bdist_wheel upload
 test = pytest
 
-[wheel]
-universal = 1
-
 [egg_info]
 tag_build = 
 tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/setup.py 
new/pytest-responsemock-1.1.1/setup.py
--- old/pytest-responsemock-1.0.1/setup.py      2020-10-10 08:52:30.000000000 
+0200
+++ new/pytest-responsemock-1.1.1/setup.py      2022-02-04 13:30:38.000000000 
+0100
@@ -42,9 +42,11 @@
 
     install_requires=[
         'pytest',
-        'responses>=0.6.0',
+        'responses>=0.18.0',
     ],
     setup_requires=[] + (['pytest-runner'] if 'test' in sys.argv else []) + [],
+    
+    python_requires=">=3.7",
 
     entry_points={
         'pytest11': ['responsemock = responsemock.entry'],
@@ -63,9 +65,10 @@
         'Operating System :: OS Independent',
         'Programming Language :: Python',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
         'License :: OSI Approved :: BSD License',
         'Framework :: Pytest',
         'Intended Audience :: Developers',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-responsemock-1.0.1/tests/test_module.py 
new/pytest-responsemock-1.1.1/tests/test_module.py
--- old/pytest-responsemock-1.0.1/tests/test_module.py  2020-10-10 
06:42:23.000000000 +0200
+++ new/pytest-responsemock-1.1.1/tests/test_module.py  2022-02-04 
13:21:47.000000000 +0100
@@ -72,4 +72,4 @@
 
     with response_mock('GET http://yandex.ru -> 500 :Nice', bypass=True):
         result = run_get()
-        assert result.status_code == 302  # https redirect
+        assert result.status_code == 301  # https redirect

Reply via email to