Home / Function/ test_gt() — fastapi Function Reference

test_gt() — fastapi Function Reference

Architecture documentation for the test_gt() function in test_code_blocks_lines_number_mismatch.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  a4d8d48d_4bfc_08e5_e64d_94224a125242["test_gt()"]
  a177ffbf_7528_97be_11ea_eed9815c64b3["test_code_blocks_lines_number_mismatch.py"]
  a4d8d48d_4bfc_08e5_e64d_94224a125242 -->|defined in| a177ffbf_7528_97be_11ea_eed9815c64b3
  style a4d8d48d_4bfc_08e5_e64d_94224a125242 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_lines_number_mismatch.py lines 18–34

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

    fixed_content = (root_dir / "docs" / "lang" / "docs" / "doc.md").read_text("utf-8")
    expected_content = Path(f"{data_path}/translated_doc_lines_number_gt.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 (
        "Code block (lines 14-18) has different number of lines than the original block (5 vs 4)"
    ) in result.output

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free