def test_file_metadata(tmp_path: Path):
    """
    Test that a simple markdown file returns a document with correct file metadata.
    """
    content = "This is a simple document."
    create_markdown_file(tmp_path, "test.md", content)

    reader = ObsidianReader(input_dir=str(tmp_path))
    docs = reader.load_data()
    assert len(docs) == 1
    doc = docs[0]
    # Check that file metadata was added
    assert doc.metadata.get("file_name") == "test.md"
    # folder_path should match the temporary directory
    assert Path(doc.metadata.get("folder_path")).resolve() == tmp_path.resolve()

    Test that a simple markdown file returns a document with correct file metadata.
    
llama-index-integrations/readers/llama-index-readers-obsidian/tests/test_readers_obsidian.py