Installation¶
Get Tenro installed and ready to test your agents.
Requirements¶
- Python 3.11 or later
- pytest 7.0 or later (for the
constructfixture)
Install Tenro¶
Verify installation¶
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¶
Write your first test with Tenro in 5 minutes.