Coverage for tests/test_tutorial/test_syncify_no_raise/test_tutorial001.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 01:12 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 01:12 +0000
1from unittest.mock import patch 1fghij
3from ...conftest import get_testing_print_function 1fghij
6def test_tutorial(): 1fghij
7 calls = [] 1abcde
9 new_print = get_testing_print_function(calls) 1abcde
11 with patch("builtins.print", new=new_print): 1abcde
12 from docs_src.tutorial.syncify_no_raise import tutorial001 as mod 1abcde
14 assert mod 1abcde
15 assert calls == [["Hello, World"], ["Hello, Sync World"]] 1abcde