def test_load_markdown_with_full_frontmatter():
    """Test loading a markdown file with full frontmatter still works."""
    content = """---
name: test_agent
type: repo
agent: CustomAgent
version: 2.0.0
---
# Test Content
This is a test markdown file with full frontmatter."""
    path = Path('test.md')

    # Load the agent from content using keyword argument
    agent = BaseMicroagent.load(path=path, file_content=content)

    # Verify all provided values are used
    assert isinstance(agent, RepoMicroagent)
    assert agent.name == 'test_agent'
    assert (
        agent.content
        == '# Test Content\nThis is a test markdown file with full frontmatter.'
    )
    assert agent.type == MicroagentType.REPO_KNOWLEDGE
    assert agent.metadata.agent == 'CustomAgent'
    assert agent.metadata.version == '2.0.0'
Test loading a markdown file with full frontmatter still works.
tests/unit/test_microagent_no_header.py