(arg: str, metadata: dict, fixtures)
| 22 | |
| 23 | |
| 24 | def create_cache_entry(arg: str, metadata: dict, fixtures) -> cache.Cache: |
| 25 | if metadata["type"] == "mirrorfile": |
| 26 | c = cache.MirrorFile(src=Path(fixtures.path(arg)), tags=metadata.get("tags")) |
| 27 | c.fetch() |
| 28 | assert c.is_valid |
| 29 | assert c.metadata_location.exists() |
| 30 | return c |
| 31 | |
| 32 | |
| 33 | @pytest.mark.parametrize("url,cache_id", ( |
no test coverage detected