(tmp_dir, dvc, local_remote)
| 414 | |
| 415 | |
| 416 | def test_protect_local_remote(tmp_dir, dvc, local_remote): |
| 417 | (stage,) = tmp_dir.dvc_gen("file", "file content") |
| 418 | |
| 419 | dvc.push() |
| 420 | odb = dvc.cloud.get_remote_odb("upstream") |
| 421 | remote_cache_file = odb.oid_to_path(stage.outs[0].hash_info.value) |
| 422 | |
| 423 | assert os.path.exists(remote_cache_file) |
| 424 | assert stat.S_IMODE(os.stat(remote_cache_file).st_mode) == 0o444 |
| 425 | |
| 426 | |
| 427 | def test_push_incomplete_dir(tmp_dir, dvc, mocker, local_remote): |
nothing calls this directly
no test coverage detected