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