()
| 89 | |
| 90 | |
| 91 | def test_inspect_function(): |
| 92 | def foo(a: int, b: str = 'bar') -> str: |
| 93 | """ |
| 94 | Do something |
| 95 | dumb |
| 96 | """ |
| 97 | return a * b |
| 98 | |
| 99 | output = inspect_format(foo) |
| 100 | print(output) |
| 101 | assert_multiline_match(output, r''' |
| 102 | value: <function test_inspect_function\.<locals>\.foo at .*> |
| 103 | type: function |
| 104 | signature: def foo\(a: int, b: str = 'bar'\) -> str |
| 105 | """ |
| 106 | Do something |
| 107 | dumb |
| 108 | """ |
| 109 | ''') |
| 110 | |
| 111 | |
| 112 | def test_inspect_nested_dict(): |
nothing calls this directly
no test coverage detected