Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

benzene-testing

In-memory test host and test doubles for Benzene Python — drive your handlers through the real pipeline, faking only the external edges, without deploying to a cloud. Mirrors .NET's Benzene.Testing.

pip install benzene-testing        # dev/test dependency
from benzene.testing import InMemoryBenzeneHost, FakeMessageSender

host = InMemoryBenzeneHost(registry)
response = await host.send_message("order:create", {"sku": "ABC"})
assert response["statusCode"] == "created"

FakeMessageSender records outbound publishes so a test can prove ingress → handler → egress carried the payload through. Transport packages add native event builders on top (benzene.gcp.testing, benzene.aws.testing, …). Depends on benzene-core; contributes the benzene.testing subpackage to the shared benzene namespace.

Download files

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

Source Distribution

benzene_testing-0.1.0b1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

benzene_testing-0.1.0b1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file benzene_testing-0.1.0b1.tar.gz.

File metadata

  • Download URL: benzene_testing-0.1.0b1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for benzene_testing-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 854e68c202946757f5a52acd613fb8e595bae48e2aeb80faf17175d231f58728
MD5 a508930c4dc4e17fa14c6ebe433c1083
BLAKE2b-256 74dbea53fb713f4f4ade6d68a53c48e5ca614b618974f7d5116782ef13ec2143

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_testing-0.1.0b1.tar.gz:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file benzene_testing-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for benzene_testing-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 063ad985b96530a95c0210a04f604848d0e2a7e6113b755d36ec44b22d6ddd27
MD5 452e5de5ca0844f9a2dfcd66a5876c90
BLAKE2b-256 132cd03cd3d9c5da9d8c77818acea7c54e5f9ee51d1f50151fa4925f0131c831

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_testing-0.1.0b1-py3-none-any.whl:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0b1 This release

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