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