Resolving a single .md file wraps it in a temp dir.
(tmp_path: Path)
| 37 | |
| 38 | |
| 39 | def test_resolve_single_md_file(tmp_path: Path) -> None: |
| 40 | """Resolving a single .md file wraps it in a temp dir.""" |
| 41 | f = tmp_path / "doc.md" |
| 42 | f.write_text("# Doc", encoding="utf-8") |
| 43 | handler = InputHandler() |
| 44 | try: |
| 45 | resolved, source_type = handler.resolve(str(f)) |
| 46 | assert resolved.is_dir() |
| 47 | assert (resolved / "doc.md").exists() |
| 48 | assert source_type == "file" |
| 49 | finally: |
| 50 | handler.cleanup() |
| 51 | |
| 52 | |
| 53 | def test_resolve_zip_file(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected