Skip to main content

watchlight-agent-sdk-testing

Test doubles and the conformance runner for plugins built on watchlight-agent-sdk. For tests only: it depends on the SDK, the SDK never depends on it, and none of it ships in the SDK.

pip install watchlight-agent-sdk-testing
from watchlight_core_testing import MockApdpClient

client = MockApdpClient()              # denies every request
client.default_decision = "Allow"      # a test that needs allows says so
client.decisions[("execute", "fs.write")] = "Deny"

MockApdpClient denies by default. A test that needs an allow sets default_decision="Allow" or a per-(action, resource) rule, so no test passes because the double allowed by omission.

Conformance

python -m watchlight_core_testing.conformance my_plugin_package
# or
watchlight-conformance my_plugin_package

Moving from watchlight_core.testing

Before After
from watchlight_core.testing import X from watchlight_core_testing import X
from watchlight_core.conformance import X from watchlight_core_testing.conformance import X
python -m watchlight_core.conformance python -m watchlight_core_testing.conformance

A test that relied on the old allow default now sees denials. Set default_decision="Allow" where the test means to allow.

Metadata

Release files for watchlight-agent-sdk-testing 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 watchlight-agent-sdk-testing 0.1.1
File Size Uploaded Provenance Actions
watchlight_agent_sdk_testing-0.1.1.tar.gz 50.7 kB With provenance Details for watchlight_agent_sdk_testing-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for watchlight-agent-sdk-testing 0.1.1
File Interpreter ABI Platform Actions
watchlight_agent_sdk_testing-0.1.1-py3-none-any.whl Python 3 none any Details for watchlight_agent_sdk_testing-0.1.1-py3-none-any.whl

Total release size: 103.7 kB

Release files / watchlight_agent_sdk_testing-0.1.1.tar.gz

Download URL watchlight_agent_sdk_testing-0.1.1.tar.gz
Size 50.7 kB
Tags Source
SHA-256 checksum
How to use checksums
52c173031cc0c1fc50c45708e8157991940b2060496c003976ce8847e56ab014
BLAKE2b-256 checksum
How to use checksums
b25f44c2a2875fc17c08ebcb45d895e7318da3c08bb6ce8247a7b25f2cb77dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / watchlight_agent_sdk_testing-0.1.1-py3-none-any.whl

Download URL watchlight_agent_sdk_testing-0.1.1-py3-none-any.whl
Size 53.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3c26517136c51cbc83bd27929d6f78451f8c22a7c1027f7dad15b659d5bf925
BLAKE2b-256 checksum
How to use checksums
895a8face16de45e6e8fb6c784b36933b61569b0a0c70f9b7cc832eabe5e0c03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for watchlight-agent-sdk-testing 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for watchlight_agent_sdk_testing-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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