Home / File/ test_pytest_config.py — langchain Source File

test_pytest_config.py — langchain Source File

Architecture documentation for test_pytest_config.py, a python file in the langchain codebase. 3 imports, 0 dependents.

File python CoreAbstractions MessageSchema 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  8e1d0182_0c7f_9097_422e_78b2ad3ce378["test_pytest_config.py"]
  120e2591_3e15_b895_72b6_cb26195e40a6["pytest"]
  8e1d0182_0c7f_9097_422e_78b2ad3ce378 --> 120e2591_3e15_b895_72b6_cb26195e40a6
  82555227_43cf_3ec2_5e4b_811a5c4ea4ee["pytest_socket"]
  8e1d0182_0c7f_9097_422e_78b2ad3ce378 --> 82555227_43cf_3ec2_5e4b_811a5c4ea4ee
  792c09b7_7372_31d2_e29c_dc98949aa3c2["requests"]
  8e1d0182_0c7f_9097_422e_78b2ad3ce378 --> 792c09b7_7372_31d2_e29c_dc98949aa3c2
  style 8e1d0182_0c7f_9097_422e_78b2ad3ce378 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import pytest
import pytest_socket
import requests


def test_socket_disabled() -> None:
    """This test should fail."""
    with pytest.raises(pytest_socket.SocketBlockedError):
        # Ignore S113 since we don't need a timeout here as the request
        # should fail immediately
        requests.get("https://www.example.com")  # noqa: S113

Subdomains

Dependencies

  • pytest
  • pytest_socket
  • requests

Frequently Asked Questions

What does test_pytest_config.py do?
test_pytest_config.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, MessageSchema subdomain.
What functions are defined in test_pytest_config.py?
test_pytest_config.py defines 1 function(s): test_socket_disabled.
What does test_pytest_config.py depend on?
test_pytest_config.py imports 3 module(s): pytest, pytest_socket, requests.
Where is test_pytest_config.py in the architecture?
test_pytest_config.py is located at libs/langchain/tests/unit_tests/test_pytest_config.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/langchain/tests/unit_tests).

Analyze Your Own Codebase

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

Try Supermodel Free