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

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/conftest.py lines 9–28

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

    parser.addoption(
        "--community",
        action="store_true",
        dest="community",
        default=False,
        help="enable running unite tests that require community",
    )

Domain

Subdomains

Frequently Asked Questions

What does pytest_addoption() do?
pytest_addoption() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/conftest.py.
Where is pytest_addoption() defined?
pytest_addoption() is defined in libs/langchain/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