forked from pool/python-zope.testbrowser
Accepting request 692343 from home:mcalabkova:branches:devel:languages:python
- update to version 5.3.2
* Fix a bug where you couldn’t set a cookie expiration date when
your locale was not English.
* Fix an incompatibility with BeautifulSoup4 >= 4.7 that could
result in a SyntaxError from browser.getControl().
* note: BeautifulSoup is not in requirements in setup.py and
we are successfully building the package without it
* Fix narrative doctests that started failing on January 1st,
2019 due to a hardcoded “future” date.
5.3.1
* Fix a DeprecationWarning on Python 3.
5.3.0
* Add support for Python 3.7.
* Drop support for Python 3.3 and 3.4.
* Drop support for pystone as Python 3.7 dropped pystone.
* Fix mechRepr of CheckboxListControl to always return a
native str.
* Add mechRepr to input fields having the type email.
- Added patch zope.testbrowser-remove-bad-test.patch to disable
failing test.
* It seems to me that Google has changed the robot policy again
and therefore it is not a bug in the software itself (similar
to upstream issue #12).
OBS-URL: https://build.opensuse.org/request/show/692343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
baf3edf347
commit
9f2c0a1044
@@ -1,3 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 8 15:39:10 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- update to version 5.3.2
|
||||
* Fix a bug where you couldn’t set a cookie expiration date when
|
||||
your locale was not English.
|
||||
* Fix an incompatibility with BeautifulSoup4 >= 4.7 that could
|
||||
result in a SyntaxError from browser.getControl().
|
||||
* note: BeautifulSoup is not in requirements in setup.py and
|
||||
we are successfully building the package without it
|
||||
* Fix narrative doctests that started failing on January 1st,
|
||||
2019 due to a hardcoded “future” date.
|
||||
5.3.1
|
||||
* Fix a DeprecationWarning on Python 3.
|
||||
5.3.0
|
||||
* Add support for Python 3.7.
|
||||
* Drop support for Python 3.3 and 3.4.
|
||||
* Drop support for pystone as Python 3.7 dropped pystone.
|
||||
* Fix mechRepr of CheckboxListControl to always return a
|
||||
native str.
|
||||
* Add mechRepr to input fields having the type email.
|
||||
- Added patch zope.testbrowser-remove-bad-test.patch to disable
|
||||
failing test.
|
||||
* It seems to me that Google has changed the robot policy again
|
||||
and therefore it is not a bug in the software itself (similar
|
||||
to upstream issue #12).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:56:31 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zope.testbrowser
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -18,19 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zope.testbrowser
|
||||
Version: 5.2.4
|
||||
Version: 5.3.2
|
||||
Release: 0
|
||||
Summary: Programmable browser for functional black-box tests
|
||||
License: ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/zopefoundation/zope.testbrowser
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.tar.gz
|
||||
Patch0: zope.testbrowser-remove-bad-test.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module WSGIProxy2}
|
||||
BuildRequires: %{python_module WebTest >= 2.0.9}
|
||||
BuildRequires: %{python_module WebTest >= 2.0.30}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytz > dev}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -41,7 +42,7 @@ BuildRequires: %{python_module zope.schema}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
# /SECTION
|
||||
Requires: python-WSGIProxy2
|
||||
Requires: python-WebTest >= 2.0.9
|
||||
Requires: python-WebTest >= 2.0.30
|
||||
Requires: python-pytz > dev
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
@@ -50,7 +51,6 @@ Requires: python-zope.interface
|
||||
Requires: python-zope.schema
|
||||
Suggests: python-zope.testing
|
||||
Suggests: python-mock
|
||||
Suggests: python-zope.testbrowser
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -63,6 +63,7 @@ site.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.testbrowser-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -71,6 +72,9 @@ site.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE.rst
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:119c542c1ba3134f16a8427ea1109cf74dbb092158a8d8606a09e5f96b1d0047
|
||||
size 81645
|
||||
3
zope.testbrowser-5.3.2.tar.gz
Normal file
3
zope.testbrowser-5.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:015255593b22788df94adc846ebc7b6fc2e2d494dcfeef754daf1260eb6be367
|
||||
size 82986
|
||||
67
zope.testbrowser-remove-bad-test.patch
Normal file
67
zope.testbrowser-remove-bad-test.patch
Normal file
@@ -0,0 +1,67 @@
|
||||
Index: zope.testbrowser-5.3.2/src/zope/testbrowser/over_the_wire.txt
|
||||
===================================================================
|
||||
--- zope.testbrowser-5.3.2.orig/src/zope/testbrowser/over_the_wire.txt
|
||||
+++ /dev/null
|
||||
@@ -1,26 +0,0 @@
|
||||
-=================================
|
||||
-Using testbrowser On the Internet
|
||||
-=================================
|
||||
-
|
||||
-The ``zope.testbrowser`` module exposes a ``Browser`` class that
|
||||
-simulates a web browser similar to Mozilla Firefox or IE.
|
||||
-
|
||||
- >>> from zope.testbrowser.browser import Browser
|
||||
- >>> browser = Browser()
|
||||
-
|
||||
-It can send arbitrary headers; this is helpful for setting the language value,
|
||||
-so that your tests format values the way you expect in your tests, if you rely
|
||||
-on zope.i18n locale-based formatting or a similar approach.
|
||||
-
|
||||
- >>> browser.addHeader('Accept-Language', 'en-US')
|
||||
-
|
||||
-The browser can `open` web pages:
|
||||
-
|
||||
- >>> # This is tricky, since in Germany I am forwarded to google.de usually;
|
||||
- >>> # The `ncr` forces to really go to google.com.
|
||||
- >>> browser.open('http://google.com/ncr')
|
||||
- Traceback (most recent call last):
|
||||
- ...
|
||||
- RobotExclusionError: HTTP Error 403: request disallowed by robots.txt
|
||||
-
|
||||
-Oops! Google doesn't let robots use their search engine. Oh well.
|
||||
Index: zope.testbrowser-5.3.2/src/zope/testbrowser/tests/test_doctests.py
|
||||
===================================================================
|
||||
--- zope.testbrowser-5.3.2.orig/src/zope/testbrowser/tests/test_doctests.py
|
||||
+++ zope.testbrowser-5.3.2/src/zope/testbrowser/tests/test_doctests.py
|
||||
@@ -26,12 +26,6 @@ def test_suite():
|
||||
checker=zope.testbrowser.tests.helper.checker,
|
||||
package='zope.testbrowser')
|
||||
|
||||
- wire = doctest.DocFileSuite('over_the_wire.txt', optionflags=flags,
|
||||
- checker=zope.testbrowser.tests.helper.checker,
|
||||
- package='zope.testbrowser')
|
||||
- wire.level = 2
|
||||
- suite.addTests(wire)
|
||||
-
|
||||
return suite
|
||||
|
||||
|
||||
Index: zope.testbrowser-5.3.2/src/zope.testbrowser.egg-info/SOURCES.txt
|
||||
===================================================================
|
||||
--- zope.testbrowser-5.3.2.orig/src/zope.testbrowser.egg-info/SOURCES.txt
|
||||
+++ zope.testbrowser-5.3.2/src/zope.testbrowser.egg-info/SOURCES.txt
|
||||
@@ -32,7 +32,6 @@ src/zope/testbrowser/browser.py
|
||||
src/zope/testbrowser/cookies.py
|
||||
src/zope/testbrowser/fixed-bugs.txt
|
||||
src/zope/testbrowser/interfaces.py
|
||||
-src/zope/testbrowser/over_the_wire.txt
|
||||
src/zope/testbrowser/testing.py
|
||||
src/zope/testbrowser/utils.py
|
||||
src/zope/testbrowser/wsgi.py
|
||||
@@ -56,4 +55,4 @@ src/zope/testbrowser/tests/test_bbb.py
|
||||
src/zope/testbrowser/tests/test_browser.py
|
||||
src/zope/testbrowser/tests/test_cookies.py
|
||||
src/zope/testbrowser/tests/test_doctests.py
|
||||
-src/zope/testbrowser/tests/test_wsgi.py
|
||||
\ No newline at end of file
|
||||
+src/zope/testbrowser/tests/test_wsgi.py
|
||||
Reference in New Issue
Block a user