pytest-easy-addoption pytest addoption but with power of type annotations and dataclasses.
More documentation here.
An quick example of a usage:
from pytest_easy_addoption import AddOption
class FooBarAddOption(AddOption):
foo: str
bar: str = 'BAR'
def pytest_addoption(parser):
FooBarAddOption.register(parser)
from .conftest import FooBarAddOption
def test_example(request):
print(FooBarAddOption())
$ pytest --foo="FOO" ============================= test session starts ============================= collected 1 items test_sample.py FooBarAddOption(foo='FOO', bar='BAR') . ============================= 1 passed in 0.03s =============================
Metadata
Release files for pytest-easy-addoption 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| pytest-easy-addoption-0.1.1.tar.gz | 5.2 kB | Without provenance | Details for pytest-easy-addoption-0.1.1.tar.gz |
Release files / pytest-easy-addoption-0.1.1.tar.gz
| Download URL | pytest-easy-addoption-0.1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48caebbf7b30bda872249f66fe4cf1ddf057ec43663bf33ee974b2305d780cbe
|
|
BLAKE2b-256 checksum How to use checksums |
8411efe7eed6e1fb983ff8e6000d3128d0818b6fc532b84f10a3fd87eab42841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.6
|
Security for pytest-easy-addoption 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.