forked from pool/python-zope.testbrowser
- 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
68 lines
2.8 KiB
Diff
68 lines
2.8 KiB
Diff
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
|