(dvc)
| 30 | |
| 31 | |
| 32 | def test_remote_add_relative_path(dvc): |
| 33 | dname = os.path.join("..", "path", "to", "dir") |
| 34 | ret = main(["remote", "add", "mylocal", dname]) |
| 35 | assert ret == 0 |
| 36 | |
| 37 | # NOTE: we are in the repo's root and config is in .dvc/, so |
| 38 | # dir path written to config should be just one level above. |
| 39 | rel = os.path.join("..", dname) |
| 40 | config = configobj.ConfigObj(dvc.config.files["repo"]) |
| 41 | assert config['remote "mylocal"']["url"] == rel.replace("\\", "/") |
| 42 | |
| 43 | |
| 44 | def test_remote_overwrite(dvc): |