()
| 271 | |
| 272 | |
| 273 | def test_deindent() -> None: |
| 274 | from _pytest._code.source import deindent as deindent |
| 275 | |
| 276 | assert deindent(["\tfoo", "\tbar"]) == ["foo", "bar"] |
| 277 | |
| 278 | source = """\ |
| 279 | def f(): |
| 280 | def g(): |
| 281 | pass |
| 282 | """ |
| 283 | lines = deindent(source.splitlines()) |
| 284 | assert lines == ["def f():", " def g():", " pass"] |
| 285 | |
| 286 | |
| 287 | def test_source_of_class_at_eof_without_newline(_sys_snapshot, tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected