Coverage for tests / test_tutorial / test_syncify / test_tutorial001.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.syncify import tutorial001_py310 as mod 1abcdefg
14 assert mod 1abcdefg
15 assert calls == [["Hello, World"]] 1abcdefg