test_translated() — fastapi Function Reference
Architecture documentation for the test_translated() function in test_code_blocks_mermaid.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5207b519_cf99_0be1_cd56_d1ea4e17a086["test_translated()"] 388303cd_0b88_353a_b73e_39f18234feda["test_code_blocks_mermaid.py"] 5207b519_cf99_0be1_cd56_d1ea4e17a086 -->|defined in| 388303cd_0b88_353a_b73e_39f18234feda style 5207b519_cf99_0be1_cd56_d1ea4e17a086 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py lines 18–33
def test_translated(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 = Path(
f"{data_path}/translated_doc_mermaid_translated.md"
).read_text("utf-8")
assert fixed_content == expected_content # Translated doc remains unchanged
assert (
"Skipping mermaid code block replacement (lines 41-44). This should be checked manually."
) in result.output
Domain
Subdomains
Source
Frequently Asked Questions
What does test_translated() do?
test_translated() is a function in the fastapi codebase, defined in scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py.
Where is test_translated() defined?
test_translated() is defined in scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free