MCPcopy Index your code
hub / github.com/numpy/numpy / test_ValidHTTP

Method test_ValidHTTP

numpy/lib/tests/test__datasource.py:248–254  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

246
247class TestRepositoryAbspath:
248 def test_ValidHTTP(self, tmp_path):
249 repos = datasource.Repository(valid_baseurl(), tmp_path)
250 _, netloc, upath, _, _, _ = urlparse(valid_httpurl())
251 local_path = os.path.join(repos._destpath, netloc,
252 upath.strip(os.sep).strip('/'))
253 filepath = repos.abspath(valid_httpfile())
254 assert_equal(local_path, filepath)
255
256 def test_sandboxing(self, tmp_path):
257 repos = datasource.Repository(valid_baseurl(), tmp_path)

Callers 1

test_windows_os_sepMethod · 0.95

Calls 7

abspathMethod · 0.95
assert_equalFunction · 0.90
valid_baseurlFunction · 0.85
valid_httpurlFunction · 0.85
valid_httpfileFunction · 0.85
joinMethod · 0.80
stripMethod · 0.80

Tested by

no test coverage detected