./devel/py-test, Python testing tool

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 3.1.3, Package name: py27-test-3.1.3, Maintainer: pkgsrc-users

The ``py.test`` testing tool makes it easy to write small tests, yet
scales to support complex functional testing. It provides
- auto-discovery of test modules and functions,
- detailed info on failing `assert statements
(no need to remember ``self.assert*`` names)
- modular fixtures for managing small or parametrized long-lived
test resources.
- multi-paradigm support: you can use ``py.test`` to run test suites based
on unittest (or trial), nose
- single-source compatibility to Python2.4 all the way up to Python3.3,
PyPy-1.9 and Jython-2.5.1.

Required to run:
[textproc/py-expat] [devel/py-setuptools] [lang/python27] [devel/py-py]

Required to build:
[textproc/py-yaml] [pkgtools/cwrappers] [devel/py-setuptools_scm] [devel/py-hypothesis]

Master sites:

SHA1: cd4071d489f61e7f5387e90d5f0eaef61a5f45d4
RMD160: 5f99d3fe2cb2b7ccebe0a3b2b43e912d3421a24f
Filesize: 750.782 KB

Version history: (Expand)

CVS history: (Expand)

   2017-07-05 17:33:29 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
Pytest 3.1.3:
Bug Fixes
* Fix decode error in Python 2 for doctests in docstrings.
* Exceptions raised during teardown by finalizers are now suppressed until all \ 
finalizers are called, with the initial exception reraised.
* Fix incorrect “collected items” report when specifying tests on the \ 
command- line.
deprecated_call in context-manager form now captures deprecation warnings even \ 
if the same warning has already been raised. Also, deprecated_call will always \ 
produce the same error message (previously it would produce different messages \ 
in context-manager vs. function-call mode).
* Fix issue where paths collected by pytest could have triple leading / characters.
* Fix internal error when trying to detect the start of a recursive traceback.

Improved Documentation
* Explicitly state for which hooks the calls stop after the first non-None result.

Trivial/Internal Changes
* Create invoke tasks for updating the vendored packages.
* Update copyright dates in LICENSE, README.rst and in the documentation.
   2017-06-10 21:22:12 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Pytest 3.1.2 (2017-06-08)
Bug Fixes
* Required options added via pytest_addoption will no longer prevent using \ 
–help without passing them.
* Respect python_files in assertion rewriting.
* Fix recursion error detection when frames in the traceback contain objects \ 
that can’t be compared (like numpy arrays).
* UnicodeWarning is issued from the internal pytest warnings plugin only when \ 
the message contains non-ascii unicode (Python 2 only).
* Added a workaround for Python 3.6 WindowsConsoleIO breaking due to Pytests’s \ 
FDCapture. Other code using console handles might still be affected by the very \ 
same issue and might require further workarounds/fixes, i.e. colorama.
   2017-06-01 09:14:32 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Pytest 3.1.1 (2017-05-30)
Bug Fixes
* pytest warning capture no longer overrides existing warning filters. The \ 
previous behaviour would override all filters and caused regressions in test \ 
suites which configure warning filters to match their needs. Note that as a \ 
side-effect of this is that DeprecationWarning and PendingDeprecationWarning are \ 
no longer shown by default.
* Fix issue with non-ascii contents in doctest text files.
* Fix encoding errors for unicode warnings in Python 2.
* pytest.deprecated_call now captures PendingDeprecationWarning in context \ 
manager form.

Improved Documentation
* Addition of towncrier for changelog management.
   2017-05-28 12:44:48 by Thomas Klausner | Files touched by this commit (1)
Log message:
Add build dependency on py-setuptools_scm.
   2017-05-23 10:30:11 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Chages 3.1.0:

New Features

* The ``pytest-warnings`` plugin has been integrated into the core, so now \ 
``pytest`` automatica
  captures and displays warnings at the end of the test session.

* Added ``junit_suite_name`` ini option to specify root `<testsuite>` name \ 
for JUnit XML reports

* Added an ini option ``doctest_encoding`` to specify which encoding to use for \ 
doctest files.

* ``pytest.warns`` now checks for subclass relationship rather than
  class equality.

* ``pytest.raises`` now asserts that the error message matches a text or regex
  with the ``match`` keyword argument.

* ``pytest.param`` can be used to declare test parameter sets with marks and \ 
test ids.
   2017-03-20 14:56:18 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated py-test to 3.0.7.

3.0.7 (2017-03-14)

* Fix issue in assertion rewriting breaking due to modules silently discarding
  other modules when importing fails
  Notably, importing the `anydbm` module is fixed. (`#2248`_).
  Thanks `@pfhayes`_ for the PR.

* junitxml: Fix problematic case where system-out tag occured twice per testcase
  element in the XML report. Thanks `@kkoukiou`_ for the PR.

* Fix regression, pytest now skips unittest correctly if run with ``--pdb``
  (`#2137`_). Thanks to `@gst`_ for the report and `@mbyt`_ for the PR.

* Ignore exceptions raised from descriptors (e.g. properties) during Python test \ 
collection (`#2234`_).
  Thanks to `@bluetech`_.

* ``--override-ini`` now correctly overrides some fundamental options like \ 
``python_files`` (`#2238`_).
  Thanks `@sirex`_ for the report and `@nicoddemus`_ for the PR.

* Replace ``raise StopIteration`` usages in the code by simple ``returns`` to \ 
finish generators, in accordance to `PEP-479`_ (`#2160`_).
  Thanks `@tgoodlet`_ for the report and `@nicoddemus`_ for the PR.

* Fix internal errors when an unprintable ``AssertionError`` is raised inside a test.
  Thanks `@omerhadari`_ for the PR.

* Skipping plugin now also works with test items generated by custom collectors \ 
  Thanks to `@vidartf`_.

* Fix trailing whitespace in console output if no .ini file presented \ 
(`#2281`_). Thanks `@fbjorn`_ for the PR.

* Conditionless ``xfail`` markers no longer rely on the underlying test item
  being an instance of ``PyobjMixin``, and can therefore apply to tests not
  collected by the built-in python test collector. Thanks `@barneygale`_ for the
   2017-02-05 20:10:30 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated py-test to 3.0.6.

3.0.6 (2017-01-29)

* pytest no longer generates ``PendingDeprecationWarning`` from its own \ 
operations, which was introduced by mistake in version ``3.0.5`` (`#2118`_).
  Thanks to `@nicoddemus`_ for the report and `@RonnyPfannschmidt`_ for the PR.

* pytest no longer recognizes coroutine functions as yield tests (`#2129`_).
  Thanks to `@malinoff`_ for the PR.

* Plugins loaded by the ``PYTEST_PLUGINS`` environment variable are now automatically
  considered for assertion rewriting (`#2185`_).
  Thanks `@nicoddemus`_ for the PR.

* Improve error message when pytest.warns fails (`#2150`_). The type(s) of the
  expected warnings and the list of caught warnings is added to the
  error message. Thanks `@lesteve`_ for the PR.

* Fix ``pytester`` internal plugin to work correctly with latest versions of
  ``zope.interface`` (`#1989`_). Thanks `@nicoddemus`_ for the PR.

* Assert statements of the ``pytester`` plugin again benefit from assertion \ 
rewriting (`#1920`_).
  Thanks `@RonnyPfannschmidt`_ for the report and `@nicoddemus`_ for the PR.

* Specifying tests with colons like ``test_foo.py::test_bar`` for tests in
  subdirectories with ini configuration files now uses the correct ini file
  (`#2148`_).  Thanks `@pelme`_.

* Fail ``testdir.runpytest().assert_outcomes()`` explicitly if the pytest
  terminal output it relies on is missing. Thanks to `@eli-b`_ for the PR.
   2017-01-03 14:23:05 by Jonathan Perkin | Files touched by this commit (52)
Log message:
Use "${MV} || ${TRUE}" and "${RM} -f" consistently in \ 
post-install targets.