test_not_translated() — fastapi Function Reference
Architecture documentation for the test_not_translated() function in test_code_blocks_mermaid.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 436cddc0_c588_7cf6_bc19_0f10746dccf3["test_not_translated()"] 388303cd_0b88_353a_b73e_39f18234feda["test_code_blocks_mermaid.py"] 436cddc0_c588_7cf6_bc19_0f10746dccf3 -->|defined in| 388303cd_0b88_353a_b73e_39f18234feda style 436cddc0_c588_7cf6_bc19_0f10746dccf3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py lines 46–59
def test_not_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_not_translated.md"
).read_text("utf-8")
assert fixed_content == expected_content # Translated doc remains unchanged
assert ("Skipping mermaid code block replacement") not in result.output
Domain
Subdomains
Source
Frequently Asked Questions
What does test_not_translated() do?
test_not_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_not_translated() defined?
test_not_translated() is defined in scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free