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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fabricatio_mock-0.1.9.dev1-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.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 14cd5e4e4ce8073825ee3d839af8a209a08105938a75d58184eee6b906dc54be
MD5 94f46dd56c5ee74143b73a0536fb6e56
BLAKE2b-256 579ee9de09a486671eac79f1c93edae6f57b6710db1ca65e244ddd801039c3bb

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