Home / Function/ test_lt() — fastapi Function Reference

test_lt() — fastapi Function Reference

Architecture documentation for the test_lt() function in test_number_mismatch.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  6488d9f9_9865_e030_2566_9f43b7bcdf33["test_lt()"]
  f38dc5dc_aa7f_23cc_5b5a_fb25ed3adeca["test_number_mismatch.py"]
  6488d9f9_9865_e030_2566_9f43b7bcdf33 -->|defined in| f38dc5dc_aa7f_23cc_5b5a_fb25ed3adeca
  style 6488d9f9_9865_e030_2566_9f43b7bcdf33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/tests/test_translation_fixer/test_code_includes/test_number_mismatch.py lines 43–60

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

    fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
    expected_content = Path(f"{data_path}/translated_doc_number_lt.md").read_text(
        "utf-8"
    )

    assert fixed_content == expected_content  # Translated doc remains unchanged
    assert "Error processing docs/lang/docs/doc.md" in result.output
    assert (
        "Number of code include placeholders does not match the number of code includes "
        "in the original document (2 vs 3)"
    ) in result.output

Domain

Subdomains

Frequently Asked Questions

What does test_lt() do?
test_lt() is a function in the fastapi codebase, defined in scripts/tests/test_translation_fixer/test_code_includes/test_number_mismatch.py.
Where is test_lt() defined?
test_lt() is defined in scripts/tests/test_translation_fixer/test_code_includes/test_number_mismatch.py at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free