Skip to main content

pytest-data-suites

Class-based test cases for pytest.

Installation

pip install pytest-data-suites

Usage example

from pytest_data_suites import DataSuite


class MultiplicationDataSuite(DataSuite):
    # Using TypedDict instead of dict here could clarify your code, but that's just a demo
    positive_operands = dict(left_operand=2, right_operand=2, operation_result=4)
    negative_operands = dict(left_operand=-3, right_operand=-7, operation_result=21)


@MultiplicationDataSuite.parametrize
def test_multiplication(left_operand: float, right_operand: float, operation_result: float) -> None:
    assert left_operand * right_operand == operation_result

Metadata

Release files for pytest-data-suites 1.0.5

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-data-suites 1.0.5
File Size Uploaded
pytest_data_suites-1.0.5.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-data-suites 1.0.5
File Interpreter ABI Platform
pytest_data_suites-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / pytest_data_suites-1.0.5.tar.gz

Download URL pytest_data_suites-1.0.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65de9db16a98f21086f8faabbade484880218a6bba3a782b43d4dac768053905
BLAKE2b-256 checksum
How to use checksums
a59f198fdcfecddd525f0ce5b6d7c3bc0ba17632fb558257ac20bd04e077e863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/23.4.0

Release files / pytest_data_suites-1.0.5-py3-none-any.whl

Download URL pytest_data_suites-1.0.5-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f585e47bb813a4bca470c56e367d8e49b60ba34658ee12e4e1e712f36b73b5ed
BLAKE2b-256 checksum
How to use checksums
9ba85a4ad72ee857e51ef8b73f478b72c3ccc108a522d4e04ded2f341c4650ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.7 Darwin/23.4.0

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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