Home / Function/ test_say_hi() — fastapi Function Reference

test_say_hi() — fastapi Function Reference

Architecture documentation for the test_say_hi() function in test_tutorial009c.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  10bcdf09_4539_d658_ecd4_ee674f790022["test_say_hi()"]
  e774bc89_3683_9f20_eb3a_d62cf4e40ef8["test_tutorial009c.py"]
  10bcdf09_4539_d658_ecd4_ee674f790022 -->|defined in| e774bc89_3683_9f20_eb3a_d62cf4e40ef8
  style 10bcdf09_4539_d658_ecd4_ee674f790022 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_python_types/test_tutorial009c.py lines 23–33

def test_say_hi(module: ModuleType):
    with patch("builtins.print") as mock_print:
        module.say_hi("FastAPI")

    mock_print.assert_called_once_with("Hey FastAPI!")

    with pytest.raises(
        TypeError,
        match=re.escape("say_hi() missing 1 required positional argument: 'name'"),
    ):
        module.say_hi()

Domain

Subdomains

Frequently Asked Questions

What does test_say_hi() do?
test_say_hi() is a function in the fastapi codebase, defined in tests/test_tutorial/test_python_types/test_tutorial009c.py.
Where is test_say_hi() defined?
test_say_hi() is defined in tests/test_tutorial/test_python_types/test_tutorial009c.py at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free