14
0
Files
python-zope.testbrowser/python-zope.testbrowser.spec

108 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-zope.testbrowser
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-zope.testbrowser%{psuffix}
Version: 7.0
Release: 0
Summary: Programmable browser for functional black-box tests
License: ZPL-2.1
URL: https://github.com/zopefoundation/zope.testbrowser
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
Source: https://files.pythonhosted.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: python-rpm-macros
Requires: python-WSGIProxy2
Requires: python-WebTest >= 2.0.30
Requires: python-beautifulsoup4
Requires: python-pytz > dev
Requires: python-setuptools
Requires: python-soupsieve >= 1.9.0
Requires: python-zope.cachedescriptors
Requires: python-zope.interface
Requires: python-zope.schema
Suggests: python-mock
Suggests: python-zope.testing
BuildArch: noarch
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
# SECTION test requirements
%if %{with test}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: %{python_module WSGIProxy2}
BuildRequires: %{python_module WebTest >= 2.0.30}
BuildRequires: %{python_module beautifulsoup4}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: %{python_module pytz > dev}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module soupsieve >= 1.9.0}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: %{python_module zope.cachedescriptors}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.schema}
BuildRequires: %{python_module zope.testbrowser}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
BuildRequires: %{python_module zope.testing}
%endif
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
# /SECTION
%python_subpackages
%description
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
The zope.testbrowser package provides an programmable web browser
with special focus on testing. It is used in Zope, but it's not Zope
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
specific. It can be used to test or otherwise interact with any web
site.
%prep
%autosetup -p1 -n zope.testbrowser-%{version}
%build
%if !%{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
cd src
%pyunittest -v zope/testbrowser/tests/test_*.py
# TODO doctests
%endif
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
%files %{python_files}
%if !%{with test}
Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python - Update to 5.2.4 * Fix form submit with GET method if the form action contains a query string (https://github.com/zopefoundation/zope.testbrowser/pull/42). * Restore ignoring hidden elements when searching by label (https://github.com/zopefoundation/zope.testbrowser/pull/41). - Update to 5.2.3 * Fix ``mechRepr`` on controls to always return a native str (https://github.com/zopefoundation/zope.testbrowser/issues/38). - Update to 5.2.2 * Restore raising of AttributeError when trying to set value of a read only control. * Fix selecting radio and select control options by index (https://github.com/zopefoundation/zope.testbrowser/issues/31). - Update to 5.2.1 * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some tests. * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older versions. - Update to 5.2 * Fixed ``toStr`` to handle lists, for example a list of class names. [maurits] * Fixed browser to only follow redirects for HTTP statuses 301, 302, 303, and 307; not other 30x statuses such as 304. * Fix passing a real file to ``add_file``. * Add ``controls`` property to Form class to list all form controls. * Restore the ability to use parts of the actually displayed select box titles. * Allow to set a string value instead of a list on ``Browser.displayValue``. * Fix setting empty values on a select control. * Support Python 3.6, PyPy2.7 an PyPy3.3. - Update to 5.1 * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have a better API. - Update to 5.0.0 * Converted most doctests to Sphinx documentation, and published to https://zopetestbrowser.readthedocs.io/ . * Internal implementation now uses WebTest instead of ``mechanize``. The ``mechanize`` dependency is completely dropped. **This is a backwards-incompatible change.** * Remove APIs: > ``zope.testbrowser.testing.Browser`` (this is a big one). * Remove modules: > ``zope.testbrowser.connection`` * Remove internal classes you were not supposed to use anyway: > ``zope.testbrowser.testing.PublisherResponse`` > ``zope.testbrowser.testing.PublisherConnection`` > ``zope.testbrowser.testing.PublisherHTTPHandler`` > ``zope.testbrowser.testing.PublisherMechanizeBrowser`` > ``zope.testbrowser.wsgi.WSGIConnection`` > ``zope.testbrowser.wsgi.WSGIHTTPHandler`` > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser`` * Remove internal attributes you were not supposed to use anyway (this list is not necessarily complete): > ``Browser._mech_browser`` * Remove setuptools extras: > ``zope.testbrowser[zope-functional-testing]`` * Changed behavior: > The testbrowser no longer follows HTML redirects aka ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which does not seem to be provided by `WebTest`. * Add support for Python 3.3, 3.4 and 3.5. * Drop support for Python 2.5 and 2.6. * Drop the ``WebTest <= 1.3.4`` pin. We require ``WebTest >= 2.0.8`` now. * Remove dependency on deprecated ``zope.app.testing``. * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>`` elements with no href attribute (https://github.com/zopefoundation/zope.testbrowser/pull/3). - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/627760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
2018-08-06 21:02:48 +00:00
%doc CHANGES.rst README.rst
%license LICENSE.rst
%dir %{python_sitelib}/zope
%{python_sitelib}/zope/testbrowser
%{python_sitelib}/zope.testbrowser-%{version}-py*-nspkg.pth
%{python_sitelib}/zope.testbrowser-%{version}.dist-info
%endif
%changelog