Skip to main content

An extension of fabricatio, which provides mocks and other test utils.

Project description

fabricatio-mock

MIT License Python Versions PyPI Version PyPI Downloads PyPI Downloads Build Tool: uv

An extension of fabricatio, which provides mocks and other test utilities.


📦 Installation

This package is part of the fabricatio monorepo and can be installed as an optional dependency using either pip or uv:

pip install fabricatio[mock]
# or
uv pip install fabricatio[mock]

For a full installation that includes this package and all other components of fabricatio:

pip install fabricatio[full]
# or
uv pip install fabricatio[full]

🔍 Overview

Provides comprehensive testing utilities and mock implementations for fabricatio applications, enabling reliable unit testing and integration testing of AI-powered workflows. It offers mock roles, test fixtures, and utilities to simulate LLM interactions and agent behaviors without external dependencies.

🧩 Key Features

  • Mock LLM Roles: Pre-configured test roles with mock LLM capabilities for isolated testing
  • Test Fixtures: Ready-to-use fixtures for common testing scenarios in fabricatio applications
  • LLM Simulation: Mock implementations of LLM interactions with configurable responses
  • Agent Testing: Utilities for testing fabricatio agents without real LLM API calls
  • Integration Testing: Support for testing complex workflows and agent interactions
  • Test Data Generation: Tools for generating realistic test data and scenarios

🔗 Dependencies

Core dependencies:

  • fabricatio-core - Core interfaces and utilities

No additional dependencies required.

📄 License

MIT – see LICENSE

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fabricatio_mock-0.1.9-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file fabricatio_mock-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: fabricatio_mock-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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 fabricatio_mock-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 26fa75ef727ee34153b109f0d208b86013da1c912d3ca84e1428435759585cca
MD5 227162630f275802970644e72e40274c
BLAKE2b-256 32b4b477c91e63cbf408859d83723bd8f2c4a9aff24117daff2125826ae92983

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page