./devel/py-unittest2pytest, Tool to rewrite Python unittest into pytest test cases

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


Branch: CURRENT, Version: 0.4, Package name: py37-unittest2pytest-0.4, Maintainer: minskim

unittest2pytest is a tool that helps rewriting Python unittest
test-cases into pytest test-cases. In contrast to other similar tools,
this handles keyword arguments, handles single-line test-cases and
several tests on one line, and uses context-handlers where
appropriate. This is done by using lib2to3 and Python's mighty
inspect module.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 4e710a7a34b6be59b34759bc9065963f2b3c6db1
RMD160: ac2f05970a47dd8577779fe54dd3ea82c8943982
Filesize: 34.634 KB

Version history: (Expand)


CVS history: (Expand)


   2019-08-21 14:51:18 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-unittest2pytest: updated to 0.4

0.4:
* Add support for assertDictContainsSubset.
* Put parenthesis around expressions if required.
* Fixed assertRaisesRegex, assertRaisesRegexp and assertWarnsRegex.
  The regex was getting replaced with an undefined variable pattern.
* Fix assertRaisesRegex and assertRaisesRegexp with **kwargs and
  atom parameters.
* Made assertRaisesRegex, assertRaisesRegexp and assertWarnsRegex use
  the match kwarg in pytest.raises instead of creating a variable
  with the context manager and doing an assert on re.search.
* Add a short developer guide.
* Remove testing on Python 3.0, 3.1, 3.2, add 3.6 and 3.7.
* Distribute package as a universal wheel.
   2018-02-25 01:22:53 by Min Sik Kim | Files touched by this commit (5)
Log message:
devel/py-unittest2pytest: Import version 0.3

unittest2pytest is a tool that helps rewriting Python unittest
test-cases into pytest test-cases. In contrast to other similar tools,
this handles keyword arguments, handles single-line test-cases and
several tests on one line, and uses context-handlers where
appropriate.  This is done by using lib2to3 and Python's mighty
inspect module.