test_deprecated_classmethod() — langchain Function Reference
Architecture documentation for the test_deprecated_classmethod() function in test_deprecation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f94f5894_f7e8_727e_7cf6_c1e4649b512c["test_deprecated_classmethod()"] 07400ddb_6f57_2ca9_d2d9_e7c7fd98cfc1["test_deprecation.py"] f94f5894_f7e8_727e_7cf6_c1e4649b512c -->|defined in| 07400ddb_6f57_2ca9_d2d9_e7c7fd98cfc1 91d747d2_96d5_e607_9599_0f360d444e03["deprecated_classmethod()"] f94f5894_f7e8_727e_7cf6_c1e4649b512c -->|calls| 91d747d2_96d5_e607_9599_0f360d444e03 style f94f5894_f7e8_727e_7cf6_c1e4649b512c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/_api/test_deprecation.py lines 203–217
def test_deprecated_classmethod() -> None:
"""Test deprecated classmethod."""
with warnings.catch_warnings(record=True) as warning_list:
warnings.simplefilter("always")
ClassWithDeprecatedMethods.deprecated_classmethod()
assert len(warning_list) == 1
warning = warning_list[0].message
assert str(warning) == (
"The method `ClassWithDeprecatedMethods.deprecated_classmethod` was "
"deprecated in tests 2.0.0 and will be removed in 3.0.0"
)
doc = ClassWithDeprecatedMethods.deprecated_classmethod.__doc__
assert isinstance(doc, str)
assert doc.startswith("!!! deprecated")
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_deprecated_classmethod() do?
test_deprecated_classmethod() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/_api/test_deprecation.py.
Where is test_deprecated_classmethod() defined?
test_deprecated_classmethod() is defined in libs/core/tests/unit_tests/_api/test_deprecation.py at line 203.
What does test_deprecated_classmethod() call?
test_deprecated_classmethod() calls 1 function(s): deprecated_classmethod.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free