(tmp_dir, dvc)
| 46 | |
| 47 | |
| 48 | def test_open_dirty_hash(tmp_dir, dvc): |
| 49 | tmp_dir.dvc_gen("file", "file") |
| 50 | (tmp_dir / "file").write_text("something") |
| 51 | |
| 52 | fs = DataFileSystem(index=dvc.index.data["repo"]) |
| 53 | with fs.open("file", "r") as fobj: |
| 54 | # NOTE: Unlike DVCFileSystem, DataFileSystem should not |
| 55 | # be affected by a dirty workspace. |
| 56 | assert fobj.read() == "file" |
| 57 | |
| 58 | |
| 59 | def test_open_no_remote(tmp_dir, dvc): |
nothing calls this directly
no test coverage detected