commit python3-case for openSUSE:Factory

2016-11-28 Thread h_root
Hello community,

here is the log from the commit of package python3-case for openSUSE:Factory 
checked in at 2016-11-28 15:10:13

Comparing /work/SRC/openSUSE:Factory/python3-case (Old)
 and  /work/SRC/openSUSE:Factory/.python3-case.new (New)


Package is "python3-case"

Changes:

--- /work/SRC/openSUSE:Factory/python3-case/python3-case.changes
2016-10-28 10:47:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.python3-case.new/python3-case.changes   
2016-11-28 15:10:21.0 +0100
@@ -1,0 +2,16 @@
+Sat Nov 26 18:55:43 UTC 2016 - a...@gmx.de
+
+- update to version 1.5.2:
+  * Using setup/teardown instead of setup_method/teardown_method was a
+bad idea.
+
+- changes from version 1.5.1:
+  * 1.5.0 had a left over print statement :blush:
+
+- changes from version 1.5.0:
+  * Pytest: When decorating classes using the "skip.*" and "mock.*"
+decorators, these now augment "cls.setup"/"cls.teardown" instead
+of "cls.setup_method"/"cls.teardown_method".
+  * Pytest: Adds "patching.object".
+
+---

Old:

  case-1.4.0.tar.gz

New:

  case-1.5.2.tar.gz



Other differences:
--
++ python3-case.spec ++
--- /var/tmp/diff_new_pack.3kGjND/_old  2016-11-28 15:10:23.0 +0100
+++ /var/tmp/diff_new_pack.3kGjND/_new  2016-11-28 15:10:23.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   python3-case
-Version:1.4.0
+Version:1.5.2
 Release:0
 Summary:Python unittest Utilities
 License:BSD-3-Clause

++ case-1.4.0.tar.gz -> case-1.5.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.4.0/Changelog new/case-1.5.2/Changelog
--- old/case-1.4.0/Changelog2016-10-18 03:54:35.0 +0200
+++ new/case-1.5.2/Changelog2016-10-29 01:14:41.0 +0200
@@ -1,6 +1,58 @@
 Changes
 ===
 
+1.5.2
+=
+:release-date: 2016-10-28 03:40 p.m. PDT
+:release-by: Ask Solem
+
+- Using setup/teardown instead of setup_method/teardown_method was a bad idea.
+
+Since it's way more common to override setup/teardown, and it's
+likely people forget to call super in these methods, the change
+crashed several test suites.
+
+So on pytest the decorators are now back to augmenting
+setup_method/teardown_method again.
+
+1.5.1
+=
+:release-date: 2016-10-28 03:40 p.m. PDT
+:release-by: Ask Solem
+
+- 1.5.0 had a left over print statement :blush:
+
+.. _version-1.5.0:
+
+1.5.0
+=
+:release-date: 2016-10-28 03:36 p.m. PDT
+:release-by: Ask Solem
+
+- Pytest: When decorating classes using the ``skip.*`` and ``mock.*``
+  decorators, these now augment ``cls.setup``/``cls.teardown`` instead of
+  ``cls.setup_method``/``cls.teardown_method``.
+
+It's a bit hard to find in the pytest documentation, but pytest
+will always call test_cls.setup and test_cls.teardown.
+
+- Pytest: Adds ``patching.object``.
+
+This works exactly like :func:`unittest.mock.patch.object`,
+you give it an object and an attribute name, and it will patch
+that attribute on the object.  It also supports the same arguments
+and extra options.
+
+Example:
+
+.. code-block:: python
+
+@pytest.fixture
+def channel(patching):
+c = Channel()
+patching(c, 'connect')
+return c
+
 .. _version-1.4.0:
 
 1.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.4.0/PKG-INFO new/case-1.5.2/PKG-INFO
--- old/case-1.4.0/PKG-INFO 2016-10-18 03:56:30.0 +0200
+++ new/case-1.5.2/PKG-INFO 2016-10-29 01:16:18.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: case
-Version: 1.4.0
+Version: 1.5.2
 Summary: Python unittest Utilities
 Home-page: http://github.com/celery/case
 Author: Ask Solem
@@ -12,7 +12,7 @@
 
 |build-status| |coverage| |license| |wheel| |pyversion| |pyimp|
 
-:Version: 1.4.0
+:Version: 1.5.2
 :Web: http://case.readthedocs.org/
 :Download: http://pypi.python.org/pypi/case/
 :Source: http://github.com/celery/case/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.4.0/README.rst new/case-1.5.2/README.rst
--- old/case-1.4.0/README.rst   2016-10-18 03:54:44.0 +0200
+++ new/case-1.5.2/README.rst   2016-10-29 01:14:37.0 +0200
@@ -4,7 +4,7 @@
 
 |build-status| |coverage| |license| |wheel| |pyversion| |pyimp|
 
-:Version: 1.4.0
+:Version: 1.5.2
 :Web: http://case.readthedocs.org/
 :Download: http://pypi.python.org/pypi/case/
 :Source: http://github.com/celery/case/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclu

commit python3-case for openSUSE:Factory

2016-10-28 Thread h_root
Hello community,

here is the log from the commit of package python3-case for openSUSE:Factory 
checked in at 2016-10-28 10:47:36

Comparing /work/SRC/openSUSE:Factory/python3-case (Old)
 and  /work/SRC/openSUSE:Factory/.python3-case.new (New)


Package is "python3-case"

Changes:

--- /work/SRC/openSUSE:Factory/python3-case/python3-case.changes
2016-07-15 12:53:50.0 +0200
+++ /work/SRC/openSUSE:Factory/.python3-case.new/python3-case.changes   
2016-10-28 10:47:37.0 +0200
@@ -1,0 +2,21 @@
+Thu Oct 27 15:49:21 UTC 2016 - a...@gmx.de
+
+- update to version 1.4.0:
+  * Adds new helper: "case.pytest.fixture_with_options".
+
+- changes from version 1.3.1:
+  * All case decorators now works with py.test classes.
+  * Py.test: Adds new `stdouts` fixture that patches
+:data:`sys.stdout`, and :data:`sys.stderr`.
+  * Py.test: The `patching` fixture can now mock modules.
+
+- changes from version 1.3.0:
+  * Case is now a py.test plug-in and provides a `patching` fixture as
+a shortcut to `monkeypatch` setting the value to a mock.  This
+does not have any effects for users not using py.test.
+
+- changes from version 1.2.3:
+  * Case decorators now supports py.test.
+  * Patcher created by create_patcher now accepts *args.
+
+---

Old:

  case-1.2.2.tar.gz

New:

  case-1.4.0.tar.gz



Other differences:
--
++ python3-case.spec ++
--- /var/tmp/diff_new_pack.sBNuXq/_old  2016-10-28 10:47:38.0 +0200
+++ /var/tmp/diff_new_pack.sBNuXq/_new  2016-10-28 10:47:38.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python3-case
-Version:1.2.2
+Version:1.4.0
 Release:0
 Summary:Python unittest Utilities
 License:BSD-3-Clause

++ case-1.2.2.tar.gz -> case-1.4.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.2.2/Changelog new/case-1.4.0/Changelog
--- old/case-1.2.2/Changelog2016-06-23 23:47:06.0 +0200
+++ new/case-1.4.0/Changelog2016-10-18 03:54:35.0 +0200
@@ -1,11 +1,112 @@
 Changes
 ===
 
+.. _version-1.4.0:
+
+1.4.0
+=
+:release-date: 2016-10-17 06:14 p.m. PDT
+:release-by: Ask Solem
+
+- Adds new helper: ``case.pytest.fixture_with_options``.
+
+Example:
+
+.. code-block:: python
+
+@fixture_with_options()
+def sftp(request,
+ username='test_username',
+ password='test_password'):
+return {'username': username, 'password': password}
+
+@sftp.options(username='foo', password='bar')
+def test_foo(sftp):
+assert sftp['username'] == 'foo'
+assert sftp['password'] == 'bar'
+
+.. _version-1.3.1:
+
+1.3.1
+=
+:release-date: 2016-07-22 06:14 p.m. PDT
+:release-by: Ask Solem
+
+- All case decorators now works with py.test classes.
+
+- Py.test: Adds new `stdouts` fixture that patches :data:`sys.stdout`,
+  and :data:`sys.stderr`.
+
+Example:
+
+.. code-block:: python
+
+def test_x(stdouts):
+print('foo')
+assert 'foo' in stdouts.stdout.getvalue()
+print('bar', file=sys.stderr)
+assert 'bar' in stdouts.stderr.getvalue()
+
+- Py.test: The `patching` fixture can now mock modules.
+
+Example:
+
+.. code-block:: python
+
+def test_x(patching):
+gevent, gevent_monkey = patching.modules(
+'gevent',
+'gevent.monkey',
+)
+os = patching.modules('os')
+gevent_monkey.patch_all.side_effect = RuntimeError()
+
+with pytest.raises(RuntimeError):
+from gevent import monkey
+monkey.patch_all()
+
+.. _version-1.3.0:
+
+1.3.0
+=
+:release-date: 2016-07-18 05:33 p.m. PDT
+:release-by: Ask Solem
+
+- Case is now a py.test plug-in and provides a `patching` fixture
+  as a shortcut to `monkeypatch` setting the value to a mock.
+
+This does not have any effects for users not using py.test.
+
+Example:
+
+.. code-block:: python
+
+def test_foo(patching):
+# execv value here will be mock.MagicMock by default.
+execv = patching('os.execv')
+
+patching('sys.platform', 'darwin')  # set concrete value
+patching.setenv('DJANGO_SETTINGS_MODULE', 'x.settings')
+
+# val will be of type mock.MagicMock by default
+val = patching.setitem('path.to.dict', 'KEY')
+
+.. _version-1.2.3:
+
+1.2.3
+=
+:release-date: 2016-06-15 03:00 p.m. PDT
+:release-by: Ask Solem
+
+- Case decorators now support

commit python3-case for openSUSE:Factory

2016-07-15 Thread h_root
Hello community,

here is the log from the commit of package python3-case for openSUSE:Factory 
checked in at 2016-07-15 12:53:40

Comparing /work/SRC/openSUSE:Factory/python3-case (Old)
 and  /work/SRC/openSUSE:Factory/.python3-case.new (New)


Package is "python3-case"

Changes:

--- /work/SRC/openSUSE:Factory/python3-case/python3-case.changes
2016-06-19 10:47:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.python3-case.new/python3-case.changes   
2016-07-15 12:53:50.0 +0200
@@ -1,0 +2,21 @@
+Wed Jul 13 02:47:51 UTC 2016 - a...@gmx.de
+
+- specfile:
+  * updated source url
+
+- update to version 1.2.2:
+  * "mock.reload_modules": Fixed compatibility with Python 3.
+
+- changes from version 1.2.1:
+  * "mock.reload_modules" now re-imports the module and calls
+"reload()" on it.  This fixes issues with side effects not being
+properly reset after context exits.
+
+- changes from version 1.2.0:
+  * Adds "mock.mute" decorator to suppress stdout with no return
+value.  Contributed by Tony Narlock.
+  * Adds "Mock.on_nth_call_do_raise(excA, excB, n)".  This will make
+the mock raise excA until called n times, in which it will start
+to raise excB.
+
+---

Old:

  case-1.1.4.tar.gz

New:

  case-1.2.2.tar.gz



Other differences:
--
++ python3-case.spec ++
--- /var/tmp/diff_new_pack.Ls9Etp/_old  2016-07-15 12:53:51.0 +0200
+++ /var/tmp/diff_new_pack.Ls9Etp/_new  2016-07-15 12:53:51.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-case
 #
-# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,21 +13,22 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 Name:   python3-case
-Version:1.1.4
+Version:1.2.2
 Release:0
-License:BSD-3-Clause
 Summary:Python unittest Utilities
-Url:http://github.com/celery/case
+License:BSD-3-Clause
 Group:  Development/Languages/Python
-Source: https://pypi.io/packages/source/c/case/case-%{version}.tar.gz
+Url:http://github.com/celery/case
+Source: 
https://files.pythonhosted.org/packages/source/c/case/case-%{version}.tar.gz
+BuildRequires:  python3-coverage >= 3.0
 BuildRequires:  python3-devel
+BuildRequires:  python3-nose >= 1.3.7
 BuildRequires:  python3-setuptools >= 0.7
 BuildRequires:  python3-six
-BuildRequires:  python3-coverage >= 3.0
-BuildRequires:  python3-nose >= 1.3.7
 Requires:   python3-nose >= 1.3.7
 Requires:   python3-six
 BuildArch:  noarch
@@ -50,6 +51,7 @@
 %files
 %defattr(-,root,root,-)
 %doc Changelog LICENSE README.rst
+
 %{python3_sitelib}/*
 
 %changelog

++ case-1.1.4.tar.gz -> case-1.2.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.1.4/Changelog new/case-1.2.2/Changelog
--- old/case-1.1.4/Changelog2016-05-13 00:04:39.0 +0200
+++ new/case-1.2.2/Changelog2016-06-23 23:47:06.0 +0200
@@ -1,6 +1,44 @@
 Changes
 ===
 
+.. _version-1.2.2:
+
+1.2.2
+=
+:release-date: 2016-06-23 02:46 P.M PDT
+:release-by: Ask Solem
+
+- ``mock.reload_modules``: Fixed compatibility with Python 3.
+
+.. _version-1.2.1:
+
+1.2.1
+=
+:release-date: 2016-06-23 12:111 P.M PDT
+:release-by: Ask Solem
+
+- ``mock.reload_modules`` now re-imports the module and
+  calls ``reload()`` on it.
+
+  This fixes issues with side effects not being properly reset after
+  context exits.
+
+.. _version-1.2.0:
+
+1.2.0
+=
+:release-date: 2016-06-13 05:00 P.M PDT
+:release-by: Ask Solem
+
+- Adds ``mock.mute`` decorator to suppress stdout with no return value.
+
+Contributed by Tony Narlock.
+
+- Adds ``Mock.on_nth_call_do_raise(excA, excB, n)``.
+
+This will make the mock raise excA until called n times, in which
+it will start to raise excB.
+
 .. _version-1.1.4:
 
 1.1.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/case-1.1.4/PKG-INFO new/case-1.2.2/PKG-INFO
--- old/case-1.1.4/PKG-INFO 2016-05-13 00:06:23.0 +0200
+++ new/case-1.2.2/PKG-INFO 2016-06-23 23:48:05.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: case
-Version: 1.1.4
+Version: 1.2.2
 Summary: Python unittest Utilities
 Home-page: http://github.com/celery/case
 Author: Ask Solem
@@ -10,7 +10,7 @@
  Python unittest utilities