Home / Function/ test_fix() — fastapi Function Reference

test_fix() — fastapi Function Reference

Architecture documentation for the test_fix() function in test_compex_doc.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  37c5eed1_cda8_111e_c943_8b250fdcdcbb["test_fix()"]
  48906fa4_259b_4458_df4c_09c003b55355["test_compex_doc.py"]
  37c5eed1_cda8_111e_c943_8b250fdcdcbb -->|defined in| 48906fa4_259b_4458_df4c_09c003b55355
  style 37c5eed1_cda8_111e_c943_8b250fdcdcbb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py lines 18–30

def test_fix(runner: CliRunner, root_dir: Path, copy_test_files):
    result = runner.invoke(
        cli,
        ["fix-pages", "docs/lang/docs/doc.md"],
    )
    assert result.exit_code == 0, result.output

    fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
    expected_content = (data_path / "translated_doc_expected.md").read_text("utf-8")
    assert fixed_content == expected_content

    assert "Fixing multiline code blocks in" in result.output
    assert "Fixing markdown links in" in result.output

Domain

Subdomains

Frequently Asked Questions

What does test_fix() do?
test_fix() is a function in the fastapi codebase, defined in scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py.
Where is test_fix() defined?
test_fix() is defined in scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free