Setup
in conftest.py
pytest_plugins = ["parametrize_from_file.generate_tests"]
Usage
Code
from parametrize_from_file import params_from_yml
@params_from_yml
def test_first(string):
assert len(string) > 0
@params_from_yml
def test_second(numer_1, number_2):
assert number_1 > number_2
Data Files
test_data/test_first.yml
tc_not_zero_1:
string: some text
tc_not_zero_2:
string: another text
tc_not_zero_3:
string: still text
test_data/test_second.yml
tc_compare_1:
number_1: 4
number_2: 5
tc_compare_2:
number_1: 7
number_2: 5
Release files for params-from-file 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 | |
|---|---|---|---|
| params-from-file-0.0.2.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| params_from_file-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.4 kB
Release files / params-from-file-0.0.2.tar.gz
| Download URL | params-from-file-0.0.2.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e56ac3fb1a30547c2aca686291718fb497e30c409142172688deae2f3e5c43f
|
|
BLAKE2b-256 checksum How to use checksums |
706de7bc9f74dc89ab0ca1ab816326eaacd0512a0319b989ba3ec8a688259ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / params_from_file-0.0.2-py3-none-any.whl
| Download URL | params_from_file-0.0.2-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22407733d7d2ff03c15c2a6dde2440b1afadd56866e6db02ba68f2dd15563816
|
|
BLAKE2b-256 checksum How to use checksums |
bce4c18844c5b421d26342b23b5f8b4a1d795c4de3b9b4b5cc87428f926afd00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|