Home / Function/ pytest_runtest_teardown() — langchain Function Reference

pytest_runtest_teardown() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b9867447_5119_0d07_165d_c4bb2a1841fe["pytest_runtest_teardown()"]
  30fa269c_62c5_2756_e2d8_2c108b225b4e["conftest.py"]
  b9867447_5119_0d07_165d_c4bb2a1841fe -->|defined in| 30fa269c_62c5_2756_e2d8_2c108b225b4e
  style b9867447_5119_0d07_165d_c4bb2a1841fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/conftest.py lines 8–15

def pytest_runtest_teardown() -> None:
    """Clean up all collections after the each test."""
    for location in qdrant_locations():
        client = QdrantClient(location=location, api_key=os.getenv("QDRANT_API_KEY"))
        collections = client.get_collections().collections

        for collection in collections:
            client.delete_collection(collection.name)

Domain

Subdomains

Frequently Asked Questions

What does pytest_runtest_teardown() do?
pytest_runtest_teardown() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/conftest.py.
Where is pytest_runtest_teardown() defined?
pytest_runtest_teardown() is defined in libs/partners/qdrant/tests/integration_tests/conftest.py at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free