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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

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

pytest_plugin

LangSmith Pytest hooks.

Attributes

attribute
logger

Functions

function
pytest_addoption

Set a boolean flag for LangSmith output.

Skip if --langsmith-output is already defined.

function
pytest_cmdline_preparse

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

function
pytest_load_initial_conftests

Handle args in pytest v8+.

function
pytest_runtest_call

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

function
pytest_report_teststatus

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

function
pytest_configure

Register the 'langsmith' marker.

Classes

class
LangSmithPlugin

Plugin for rendering LangSmith results.

Modules

module
ls_utils

Generic utility functions.

View source on GitHub