()
| 80 | |
| 81 | |
| 82 | def test_wrapped_getfslineno() -> None: |
| 83 | def func(): |
| 84 | pass |
| 85 | |
| 86 | def wrap(f): |
| 87 | func.__wrapped__ = f # type: ignore |
| 88 | func.patchings = ["qwe"] # type: ignore |
| 89 | return func |
| 90 | |
| 91 | @wrap |
| 92 | def wrapped_func(x, y, z): |
| 93 | pass |
| 94 | |
| 95 | fs, lineno = getfslineno(wrapped_func) |
| 96 | fs2, lineno2 = getfslineno(wrap) |
| 97 | assert lineno > lineno2, "getfslineno does not unwrap correctly" |
| 98 | |
| 99 | |
| 100 | class TestMockDecoration: |
nothing calls this directly
no test coverage detected