test_compex_doc.py — fastapi Source File
Architecture documentation for test_compex_doc.py, a python file in the fastapi codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 48906fa4_259b_4458_df4c_09c003b55355["test_compex_doc.py"] b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"] 48906fa4_259b_4458_df4c_09c003b55355 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42 5befe8bf_65d1_d058_6b78_4a597a8488e9["pytest"] 48906fa4_259b_4458_df4c_09c003b55355 --> 5befe8bf_65d1_d058_6b78_4a597a8488e9 50e86d72_8593_e02d_8fa4_63659153e8bf["typer.testing"] 48906fa4_259b_4458_df4c_09c003b55355 --> 50e86d72_8593_e02d_8fa4_63659153e8bf 99e3c039_dae8_2ebf_8149_637bcc119c08["translation_fixer.py"] 48906fa4_259b_4458_df4c_09c003b55355 --> 99e3c039_dae8_2ebf_8149_637bcc119c08 f3d7b32d_2379_8b46_1d7c_05f2c6f38a29["cli"] 48906fa4_259b_4458_df4c_09c003b55355 --> f3d7b32d_2379_8b46_1d7c_05f2c6f38a29 style 48906fa4_259b_4458_df4c_09c003b55355 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from pathlib import Path
import pytest
from typer.testing import CliRunner
from scripts.translation_fixer import cli
data_path = Path(
"scripts/tests/test_translation_fixer/test_complex_doc/data"
).absolute()
@pytest.mark.parametrize(
"copy_test_files",
[(f"{data_path}/en_doc.md", f"{data_path}/translated_doc.md")],
indirect=True,
)
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
Functions
Dependencies
- cli
- pathlib
- pytest
- translation_fixer.py
- typer.testing
Source
Frequently Asked Questions
What does test_compex_doc.py do?
test_compex_doc.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Routing subdomain.
What functions are defined in test_compex_doc.py?
test_compex_doc.py defines 1 function(s): test_fix.
What does test_compex_doc.py depend on?
test_compex_doc.py imports 5 module(s): cli, pathlib, pytest, translation_fixer.py, typer.testing.
Where is test_compex_doc.py in the architecture?
test_compex_doc.py is located at scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py (domain: FastAPI, subdomain: Routing, directory: scripts/tests/test_translation_fixer/test_complex_doc).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free