Skip to main content

pytest-agentic-fabric

Pytest fixtures for projects built on agentic-fabric.

Installation

Install the plugin alongside the test dependencies of the project under test:

python -m pip install pytest-agentic-fabric

Pytest discovers the agentic_fabric plugin automatically through its pytest11 entry point. Verify that the optional --agentic-e2e switch is available in pytest --help before relying on it in CI.

Fixtures:

  • agentic_runtime_available: importability predicate for optional runtimes.
  • agentic_runtime_registry: isolated mutable registry for tests.
  • agentic_runtime_modules: known runtime import module names.
  • agentic_mock_runtime: installs fake runtime modules into sys.modules.
  • agentic_fabric_mocker / fabric_mocker: FabricMocker helper for mocking CrewAI, LangGraph, Strands, and agentic-fabric internals.
  • mock_agentic_frameworks: installs fake modules for all optional runtimes.
  • mock_crewai, mock_langgraph, mock_strands: installs fake modules for one optional runtime path.
  • agentic_fabric_agent_config: minimal framework-neutral fabric agent config.
  • simple_agent_config, simple_task_config: reusable agent and task config mappings.
  • simple_fabric_agent_config, multi_agent_fabric_agent_config, fabric_agent_with_knowledge: reusable fabric agent config mappings.
  • temp_fabric_dir: temporary framework-agnostic .fabric directory.
  • agentic_workspace: temporary workspace with a discoverable .fabric package.

agentic_workspace serializes the current agentic_fabric_agent_config fixture into packages/sample/.fabric/manifest.yaml plus matching agents.yaml and tasks.yaml files. Override agentic_fabric_agent_config in a test module or conftest.py to create a custom workspace while keeping the discovery layout consistent.

Tests marked @pytest.mark.agentic_e2e or @pytest.mark.agentic_runtime("crewai") are skipped unless --agentic-e2e is passed.

FabricMocker exposes mock_crewai(), mock_langgraph(), mock_strands(), mock_all_frameworks(), framework-specific patch helpers, and patch_get_llm(), patch_discover_packages(), patch_get_fabric_agent_config(), and patch_run_fabric_agent_auto() for tests that need to isolate fabric orchestration from optional runtime imports.

Metadata

Release files for pytest-agentic-fabric 0.3.3

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-agentic-fabric 0.3.3
File Size Uploaded
pytest_agentic_fabric-0.3.3.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-agentic-fabric 0.3.3
File Interpreter ABI Platform
pytest_agentic_fabric-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / pytest_agentic_fabric-0.3.3.tar.gz

Download URL pytest_agentic_fabric-0.3.3.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
995b1667ac0c00963193d52b6dd5012369de1bdc0d808721c7671d112e9f9f39
BLAKE2b-256 checksum
How to use checksums
9ae6712ce561af34ea561f53fead12f78c074c6cacbd167d7f0834ea23640c26
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / pytest_agentic_fabric-0.3.3-py3-none-any.whl

Download URL pytest_agentic_fabric-0.3.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3148ecd556c5eb5a8d4713fac394e50c770473d6361dffa6320edfb3736fe69c
BLAKE2b-256 checksum
How to use checksums
7b5d5cf2d6cd553f049b7dfb576bd4f5597cb668948806a49cc1c70b23f88047
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.3.3 This release

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