Coverage for tests/test_tutorial/test_first_steps/test_tutorial001.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-09 01:12 +0000

1from unittest.mock import patch 1fghij

2 

3from ...conftest import get_testing_print_function 1fghij

4 

5 

6def test_tutorial_001(): 1fghij

7 calls = [] 1abcde

8 

9 new_print = get_testing_print_function(calls) 1abcde

10 

11 with patch("builtins.print", new=new_print): 1abcde

12 from docs_src.tutorial.first_steps import tutorial001 as mod 1abcde

13 

14 assert mod 1abcde

15 assert calls == [["Hello, World"]] 1abcde