Skip to main content

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  =============================

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)

Source distribution for pytest-easy-addoption 0.1.1
File Size Uploaded
pytest-easy-addoption-0.1.1.tar.gz 5.2 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page