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 intosys.modules.agentic_fabric_mocker/fabric_mocker:FabricMockerhelper 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.fabricdirectory.agentic_workspace: temporary workspace with a discoverable.fabricpackage.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
995b1667ac0c00963193d52b6dd5012369de1bdc0d808721c7671d112e9f9f39
|
|
| MD5 |
aa850dfb976abf4a0ccffc87893476ef
|
|
| BLAKE2b-256 |
9ae6712ce561af34ea561f53fead12f78c074c6cacbd167d7f0834ea23640c26
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3148ecd556c5eb5a8d4713fac394e50c770473d6361dffa6320edfb3736fe69c
|
|
| MD5 |
a72129399916e98697105c89e4cad472
|
|
| BLAKE2b-256 |
7b5d5cf2d6cd553f049b7dfb576bd4f5597cb668948806a49cc1c70b23f88047
|