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.

Download files

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

Source Distribution

pytest_agentic_fabric-0.3.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

pytest_agentic_fabric-0.3.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_agentic_fabric-0.3.3.tar.gz.

File metadata

  • Download URL: pytest_agentic_fabric-0.3.3.tar.gz
  • Upload date:
  • Size: 11.6 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_agentic_fabric-0.3.3.tar.gz
Algorithm Hash digest
SHA256 995b1667ac0c00963193d52b6dd5012369de1bdc0d808721c7671d112e9f9f39
MD5 aa850dfb976abf4a0ccffc87893476ef
BLAKE2b-256 9ae6712ce561af34ea561f53fead12f78c074c6cacbd167d7f0834ea23640c26

See more details on using hashes here.

File details

Details for the file pytest_agentic_fabric-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pytest_agentic_fabric-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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_agentic_fabric-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3148ecd556c5eb5a8d4713fac394e50c770473d6361dffa6320edfb3736fe69c
MD5 a72129399916e98697105c89e4cad472
BLAKE2b-256 7b5d5cf2d6cd553f049b7dfb576bd4f5597cb668948806a49cc1c70b23f88047

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.3 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