MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / test_mirror_uri_handler

Function test_mirror_uri_handler

tests/test_mirror.py:31–40  ·  view source on GitHub ↗
(simulate_mirror)

Source from the content-addressed store, hash-verified

29
30
31def test_mirror_uri_handler(simulate_mirror):
32 handler = umirror.MirrorHandler(urlparse("mirror://wheel"))
33 assert handler.package_name == "wheel"
34 assert handler.opts["release"] == "latest"
35 assert isinstance(handler.metadata, dict)
36
37 paths = list(handler.get_paths())
38 assert len(paths) == 2
39 filenames = set(x.filename for x in paths)
40 assert {"wheel-0.34.2-py2.py3-none-any.whl", "wheel-0.34.2.tar.gz"} == filenames
41
42
43def test_mirror_suspicious_file_trigger(simulate_mirror):

Callers

nothing calls this directly

Calls 1

get_pathsMethod · 0.95

Tested by

no test coverage detected