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.2
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.2.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_enhancements-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / pytest-enhancements-0.0.2.tar.gz
| Download URL | pytest-enhancements-0.0.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c34c35676c4dc088c8392c61523459b8c8ba874ee62d9ea60f550c6f8e06bef0
|
|
BLAKE2b-256 checksum How to use checksums |
fbf2cf11daa36c3598b7a831bcc77d684a95f0723032131d6b607109e51f7820
|
| 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.2-py3-none-any.whl
| Download URL | pytest_enhancements-0.0.2-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e3d77c11bc60d7056ade9d1b449e8ab08b3687eb373209923a9f0c13e4a86ec
|
|
BLAKE2b-256 checksum How to use checksums |
d6db5997e8dadd37aa5ecbeda54cb7a28f12ba904560c632108676203866c1cf
|
| 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
|