(tmp_path: Path)
| 124 | |
| 125 | |
| 126 | def test_remove_from_gitignore(tmp_path: Path) -> None: |
| 127 | gitignore = tmp_path / ".gitignore" |
| 128 | gitignore.write_text("*.pyc\n# CocoIndex Code (ccc)\n/.cocoindex_code/\n__pycache__/\n") |
| 129 | remove_from_gitignore(tmp_path) |
| 130 | content = gitignore.read_text() |
| 131 | assert "/.cocoindex_code/" not in content |
| 132 | assert "# CocoIndex Code (ccc)" not in content |
| 133 | assert "*.pyc" in content |
| 134 | assert "__pycache__/" in content |
| 135 | |
| 136 | |
| 137 | def test_remove_from_gitignore_no_entry(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected