Skip to main content

pytest-extended-data

pytest-extended-data publishes reusable pytest fixtures and assertions for projects built on extended-data.

Install it in test environments:

uv add --dev pytest-extended-data

The plugin is exposed through the standard pytest11 entry point. It provides:

  • extended_data_factory: the ExtendedData polymorphic constructor.
  • extended_data_payload: a small nested mapping payload for examples and smoke tests.
  • extended_data_value: the payload wrapped as an ExtendedData value.
  • assert_extended_shape(value, shape): assertion helper for shape checks.
  • assert_builtin_round_trip(value, expected): assertion helper for export-boundary checks.

Use the fixtures as consumer-facing contract checks, rather than duplicating private container implementation details in every downstream package:

def test_configuration_boundary(extended_data_value):
    assert extended_data_value["service"]["name"] == "api"
    assert extended_data_value.as_builtin() == {
        "service": {"name": "api", "ports": [8080, 8443]},
        "enabled": True,
    }

The runtime package deliberately has no pytest plugin. Install this package only in test environments so production dependencies remain focused on data handling.

See the Package Surface guide for the runtime and plugin split.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_extended_data-0.2.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_extended_data-0.2.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_extended_data-0.2.1.tar.gz.

File metadata

  • Download URL: pytest_extended_data-0.2.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_extended_data-0.2.1.tar.gz
Algorithm Hash digest
SHA256 144698866caea82fd7da817ce7a104fce1743f7b7abfe253586444c1823bacaf
MD5 12056dc57098fc93e47b317438565d62
BLAKE2b-256 a246fb57bb7439018ed01c1dbd6f1c49888a0bbf0853b93b256b639068f99f46

See more details on using hashes here.

File details

Details for the file pytest_extended_data-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_extended_data-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_extended_data-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0da1e59428e32ab38c9877395339000f3761757df4246ab58568354c61b448b7
MD5 3121211e3f1a579655f97a5ed481df31
BLAKE2b-256 2e0d95931df000716421cb65297c42adb9b9d2f2f890301153180ac85d7da710

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 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