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
  1b967c9b_6c35_3ee9_95e8_b4aa290d8d14["pytest_addoption()"]
  e7f28879_d9b0_59eb_c106_fe5bbec0e649["conftest.py"]
  1b967c9b_6c35_3ee9_95e8_b4aa290d8d14 -->|defined in| e7f28879_d9b0_59eb_c106_fe5bbec0e649
  style 1b967c9b_6c35_3ee9_95e8_b4aa290d8d14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/conftest.py lines 38–49

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.",
    )

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free