(self, cloud, tmp_dir)
| 275 | |
| 276 | class TestGetUrl: |
| 277 | def test_get_file(self, cloud, tmp_dir): |
| 278 | cloud.gen({"foo": "foo contents"}) |
| 279 | |
| 280 | Repo.get_url(str(cloud / "foo"), "foo_imported", fs_config=cloud.config) |
| 281 | |
| 282 | assert (tmp_dir / "foo_imported").is_file() |
| 283 | assert (tmp_dir / "foo_imported").read_text() == "foo contents" |
| 284 | |
| 285 | def test_get_dir(self, cloud, tmp_dir): |
| 286 | cloud.gen({"foo": {"foo": "foo contents"}}) |