Commit 758a34d
test(presets): drop duplicate geturl mock; add legacy fetch_catalog per-hop test
- Remove the duplicate mock_response.geturl.return_value assignment left by the
geturl mock-completion pass (the explanatory comment was stranded between the
two identical assignments); keep a single assignment after the comment.
- Add test_fetch_catalog_legacy_validates_every_redirect_hop so the legacy
fetch_catalog() path is verified to supply the redirect_validator (rejecting an
insecure intermediate hop), not just the terminal geturl() — parity with
_fetch_single_catalog and the #3524 sibling.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c2abf66 commit 758a34d
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1849 | 1866 | | |
1850 | 1867 | | |
1851 | 1868 | | |
| |||
1879 | 1896 | | |
1880 | 1897 | | |
1881 | 1898 | | |
1882 | | - | |
1883 | 1899 | | |
1884 | 1900 | | |
1885 | 1901 | | |
| |||
0 commit comments