def test_single_backlink(tmp_path: Path):
    """
    Test a simple case where one note (A.md) links to another (B.md).

    Expected behavior:
      - Note A should have no backlinks.
      - Note B should have a backlink from A.
    """
    # Create two markdown files:
    # A.md links to B, while B.md contains no wikilinks.
    create_markdown_file(tmp_path, "A.md", "This is note A linking to [[B]].")
    create_markdown_file(tmp_path, "B.md", "This is note B with no links.")

    reader = ObsidianReader(input_dir=str(tmp_path))
    docs = reader.load_data()

    doc_a = get_doc_by_note_name(docs, "A")
    doc_b = get_doc_by_note_name(docs, "B")

    # Verify that doc_a exists and has no backlinks.
    assert doc_a is not None
    assert doc_a.metadata.get("backlinks") == []

    # Verify that doc_b exists and has a backlink from A.
    assert doc_b is not None
    assert doc_b.metadata.get("backlinks") == ["A"]

    Test a simple case where one note (A.md) links to another (B.md).

    Expected behavior:
      - Note A should have no backlinks.
      - Note B should have a backlink from A.
    
llama-index-integrations/readers/llama-index-readers-obsidian/tests/test_readers_obsidian.py