(fixtures)
| 470 | |
| 471 | |
| 472 | def 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 | |
| 487 | def empty_generator(location): |
nothing calls this directly
no test coverage detected