File python-zope.testing.spec of Package python-zope.testing

# spec file for package python-zope.testing
# 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
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-zope.testing
Version:        4.7
Release:        0
Summary:        Zope testing helpers
License:        ZPL-2.1
BuildRequires:  %{python_module setuptools}
# Test requirements:
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch

This package provides a number of testing frameworks.

  Provides a mixin class for cleaning up after tests that
  make global changes.

  An HTML parser that extracts form information.

  **Python 2 only**

  This is intended to support functional tests that need to extract
  information from HTML forms returned by the publisher.

  See formparser.txt.

  Support for testing logging code

  If you want to test that your code generates proper log output, you
  can create and install a handler that collects output.

  Logging handler for tests that check logging output.

  Lets a doctest pretend to be a Python module.

  See module.txt.

  Regular expression pattern normalizing output checker.
  Useful for doctests.

  Provides a simple HTTP server compatible with the
  functional testing API.  Lets you interactively play with the system
  under test.  Helpful in debugging functional doctest failures.

  **Python 2 only**

  A simple framework for automating doctest set-up and tear-down.
  See setupstack.txt.

  A small utility for dealing with timing non-determinism
  See wait.txt.

%setup -q -n zope.testing-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}

%python_exec test

%files %{python_files}
%license LICENSE.txt

openSUSE Build Service is sponsored by