Home / Function/ test_find_all_links_ignore_suffix() — langchain Function Reference

test_find_all_links_ignore_suffix() — langchain Function Reference

Architecture documentation for the test_find_all_links_ignore_suffix() function in test_html.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  019365bb_08ce_7ffe_5d58_bc0a3d6615dc["test_find_all_links_ignore_suffix()"]
  89d29efc_3f6a_dceb_4c69_b201fa975bdd["test_html.py"]
  019365bb_08ce_7ffe_5d58_bc0a3d6615dc -->|defined in| 89d29efc_3f6a_dceb_4c69_b201fa975bdd
  style 019365bb_08ce_7ffe_5d58_bc0a3d6615dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_html.py lines 37–47

def test_find_all_links_ignore_suffix() -> None:
    html = 'href="foobar{suffix}"'
    for suffix_ in SUFFIXES_TO_IGNORE:
        actual = find_all_links(html.format(suffix=suffix_))
        assert actual == []

    # Don't ignore if pattern doesn't occur at end of link.
    html = 'href="foobar{suffix}more"'
    for suffix_ in SUFFIXES_TO_IGNORE:
        actual = find_all_links(html.format(suffix=suffix_))
        assert actual == [f"foobar{suffix_}more"]

Domain

Subdomains

Frequently Asked Questions

What does test_find_all_links_ignore_suffix() do?
test_find_all_links_ignore_suffix() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_html.py.
Where is test_find_all_links_ignore_suffix() defined?
test_find_all_links_ignore_suffix() is defined in libs/core/tests/unit_tests/utils/test_html.py at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free