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

Relationship Graph

Source Code

libs/text-splitters/tests/unit_tests/conftest.py lines 9–20

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/text-splitters/tests/unit_tests/conftest.py.
Where is pytest_addoption() defined?
pytest_addoption() is defined in libs/text-splitters/tests/unit_tests/conftest.py at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free