(tmp_dir, dvc)
| 57 | |
| 58 | |
| 59 | def test_open_no_remote(tmp_dir, dvc): |
| 60 | tmp_dir.dvc_gen("file", "file") |
| 61 | (tmp_dir / "file").unlink() |
| 62 | remove(dvc.cache.local.path) |
| 63 | |
| 64 | fs = DataFileSystem(index=dvc.index.data["repo"]) |
| 65 | with pytest.raises(FileNotFoundError): |
| 66 | with fs.open("file", "r"): |
| 67 | pass |
| 68 | |
| 69 | |
| 70 | def test_open_dirty_no_hash(tmp_dir, dvc): |
nothing calls this directly
no test coverage detected