Skip to content

Installation

Get Tenro installed and ready to test your agents.

Requirements

  • Python 3.11 or later
  • pytest 7.0 or later (for the construct fixture)

Install Tenro

pip install tenro
uv add tenro
poetry add tenro

Verify installation

import tenro
print(tenro.__version__)

You should see the version number printed.

Pytest setup

Tenro provides a construct fixture automatically. No configuration needed, just use it in your tests:

from tenro import Provider
from tenro.simulate import llm, tool
from tenro.testing import tenro

@tenro
def test_my_agent():
    llm.simulate(Provider.OPENAI, response="Hello!")
    # Your test here

Fixture auto-discovery

Tenro registers its pytest fixtures automatically via entry points. You don't need to import anything or configure conftest.py.

Next step

Quick start

Write your first test with Tenro in 5 minutes.