Coverage for tests / test_tutorial / test_soonify_return / test_tutorial003.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-05-05 09:41 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-05-05 09:41 +0000
1from unittest.mock import patch 1hijklmn
3from ...conftest import get_testing_print_function 1hijklmn
6def test_tutorial(): 1hijklmn
7 calls = [] 1abcdefg
9 new_print = get_testing_print_function(calls) 1abcdefg
11 with patch("builtins.print", new=new_print): 1abcdefg
12 from docs_src.tutorial.soonify_return import tutorial003_py310 as mod 1abcdefg
14 assert mod 1abcdefg
15 assert calls == [ 1abcdefg
16 ["Preview value1: Hello, Yury"],
17 ["Hello, Yury"],
18 ["Hello, Nathaniel"],
19 ["Hello, Alex"],
20 ]