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.8-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fabricatio_mock-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28684ae56734be50b9789909a8cd8687ed0a77dcd049c0790ac0807715964a5a
MD5 5283182a534ef697f40c1cb4672c73b9
BLAKE2b-256 0a4b8ad90e02694fe00db540eaec32fb1d963afd14e65ac8faf8067cfa3c424b

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