Home / Function/ pytest_addoption() — langchain Function Reference

pytest_addoption() — langchain Function Reference

Architecture documentation for the pytest_addoption() function in conftest.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  315d81fd_235a_8e93_a194_9fd8333944f9["pytest_addoption()"]
  fb7fa57e_2bf2_509b_3fe0_a405e1245160["conftest.py"]
  315d81fd_235a_8e93_a194_9fd8333944f9 -->|defined in| fb7fa57e_2bf2_509b_3fe0_a405e1245160
  style 315d81fd_235a_8e93_a194_9fd8333944f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/conftest.py lines 57–68

def pytest_addoption(parser: pytest.Parser) -> None:
    """Add custom command line options to pytest."""
    parser.addoption(
        "--only-extended",
        action="store_true",
        help="Only run extended tests. Does not allow skipping any extended tests.",
    )
    parser.addoption(
        "--only-core",
        action="store_true",
        help="Only run core tests. Never runs any extended tests.",
    )

Domain

Subdomains

Frequently Asked Questions

What does pytest_addoption() do?
pytest_addoption() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/conftest.py.
Where is pytest_addoption() defined?
pytest_addoption() is defined in libs/langchain_v1/tests/unit_tests/conftest.py at line 57.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free