Coverage for tests / test_tutorial / test_python_types / test_tutorial003.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-12 18:15 +0000
« prev ^ index » next coverage.py v7.13.3, created at 2026-02-12 18:15 +0000
1import pytest 1abcd
3from docs_src.python_types.tutorial003_py310 import get_name_with_age 1abcd
6def test_get_name_with_age_pass_int(): 1abcd
7 with pytest.raises(TypeError): 1efg
8 get_name_with_age("John", 30) 1efg
11def test_get_name_with_age_pass_str(): 1abcd
12 assert get_name_with_age("John", "30") == "John is this old: 30" 1hij