pytest-enhancements
Enhancements to pytest that were rejected upstream. Might involve monkey-patching pytest directly.. :/
Features
-
Supports passing dictionaries to @pytest.mark.parametrize:
@pytest.mark.parametrize('arg1,arg2,expected_id', { "myid_12": [1, 2, "[myid_12]"], "replaced_id": pytest.param(3, 4, "[replaced_id]", id="myid_34"), "myid_56": pytest.param(5, 6, "[myid_56]"), }) def test_parametrize_dict(request, arg1, arg2, expected_id): if expected_id is None: expected_id = "[%d-%d-None]" % (arg1, arg2) assert request.node.nodeid.endswith(expected_id)
(rejected in https://github.com/pytest-dev/pytest/pull/5850)
Installation
$ pip install pytest-enhancements
License
Distributed under the terms of the GNU GPL v3.0 license.
Metadata
Release files for pytest-enhancements 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-enhancements-0.0.1.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_enhancements-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / pytest-enhancements-0.0.1.tar.gz
| Download URL | pytest-enhancements-0.0.1.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9537fed4494cc421f8101c0267b22efa4c1dedd70677d3f946060e2c11895038
|
|
BLAKE2b-256 checksum How to use checksums |
ef81681d6c06b2057c2b91997fba8944e8264531720e311855811973fba93e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|
Release files / pytest_enhancements-0.0.1-py3-none-any.whl
| Download URL | pytest_enhancements-0.0.1-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efedec8f07dfcda04e6d8c116d05195e0773ac8187babc484b443e78c1980f0b
|
|
BLAKE2b-256 checksum How to use checksums |
3e680468b5167d6f8b1a873c5788802c34709f1908f042162e30ef9a45506bb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|