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

Function test_local_diff_paths

tests/test_diff.py:472–484  ·  view source on GitHub ↗
(fixtures)

Source from the content-addressed store, hash-verified

470
471
472def test_local_diff_paths(fixtures):
473 arch1 = "wheel-0.34.2-py2.py3-none-any.whl"
474 arch2 = "wheel-0.33.0-py2.py3-none-any.whl"
475
476 uri1, uri2 = URIHandler.diff_from_uri(fixtures.path(f"mirror/{arch1}"), fixtures.path(f"mirror/{arch2}"))
477
478 paths = list(uri1.get_diff_paths(uri2))
479 assert len(paths) == 1
480 assert len(paths[0]) == 2
481
482 #Scan Locations should be normalized so that the str repr outputs only the latest part (filename) of the full path
483 assert str(paths[0][0]) == arch1
484 assert str(paths[0][1]) == arch2
485
486
487def empty_generator(location):

Callers

nothing calls this directly

Calls 3

diff_from_uriMethod · 0.80
pathMethod · 0.80
get_diff_pathsMethod · 0.45

Tested by

no test coverage detected