LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithpytest_plugin
Module●Since v0.3

pytest_plugin

LangSmith Pytest hooks.

Attributes

attribute
logger

Functions

function
pytest_addoption
function
pytest_cmdline_preparse
function
pytest_load_initial_conftests
function
pytest_runtest_call
function
pytest_report_teststatus
function
pytest_configure

Classes

class
LangSmithPlugin

Modules

View source on GitHub
module
ls_utils

Set a boolean flag for LangSmith output.

Skip if --langsmith-output is already defined.

Call immediately after command line options are parsed (pytest v7).

Handle args in pytest v8+.

Apply LangSmith tracking to tests marked with @pytest.mark.langsmith.

Remove the short test-status character outputs ("./F").

Register the 'langsmith' marker.

Plugin for rendering LangSmith results.

Generic utility functions.