(self, tmp_dir, dvc, remote)
| 8 | |
| 9 | class TestAPI: |
| 10 | def test_get_url(self, tmp_dir, dvc, remote): |
| 11 | tmp_dir.dvc_gen("foo", "foo") |
| 12 | |
| 13 | expected_url = ( |
| 14 | remote / "files" / "md5" / "ac/bd18db4cc2f85cedef654fccc4a4d8" |
| 15 | ).url |
| 16 | assert api.get_url("foo") == expected_url |
| 17 | |
| 18 | def test_open(self, tmp_dir, dvc, remote): |
| 19 | tmp_dir.dvc_gen({"foo": "foo-text", "dir": {"bar": "bar-text"}}) |