Skip to main content

Add your description here

Project description

pytest-llm-agent

CLI helper to work with unit tests for your codebase.

Installation

Install from PyPI with pip:

pip install pytest-llm-agent

Configuration

You can choose model and add general default prompt

[tool.pytest-llm-agent]
model = "gpt-5"
# general_prompt = "Optional extra system prompt for the agent"

Secrets can be supplied through environment variables prefixed with PYTEST_LLM_AGENT_. For example, set PYTEST_LLM_AGENT_API_KEY in your shell and the agent will receive API_KEY in its environment at runtime.

EXPORT PYTEST_LLM_AGENT_API_KEY=foo

Usage

After configuring your project, run the CLI to generate tests for a specific function, method, or class:

pytest-llm-agent target path/to/module.py:ClassName.method tests/test_module.py

You can optionally pass additional instructions to steer generation:

pytest-llm-agent target path/to/module.py::function tests/test_module.py --prompt "Focus on edge cases"

Project details


Download files

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

Source Distribution

pytest_llm_agent-0.1.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

pytest_llm_agent-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_llm_agent-0.1.1.tar.gz.

File metadata

  • Download URL: pytest_llm_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for pytest_llm_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4eb2f7b96d749ce6b730705c6bcd921cce35153e5403feb51f94ac3d5673317a
MD5 3f3dd0594d4db97a0c7938e94c165ad8
BLAKE2b-256 7fa5e23db3899c62cc8f35f3486fd83c7b80112148771e0b0b82c8253fd06258

See more details on using hashes here.

File details

Details for the file pytest_llm_agent-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_llm_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dabbcc3212a606ed0dac3e534e83346c3cec5e1cc474de4ad0f89e1dfb6abb8d
MD5 6e92776bbb81503670244128e72ca153
BLAKE2b-256 557fc3b3c9b05f0faf129cd563ad189dec76460dc3945c76bd7b9f41bfb8d656

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