MCPcopy
hub / github.com/huggingface/datasets / test_xopen_remote

Function test_xopen_remote

tests/test_file_utils.py:472–476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

470
471@pytest.mark.integration
472def test_xopen_remote():
473 with xopen(TEST_URL, "r", encoding="utf-8") as f:
474 assert list(f) == TEST_URL_CONTENT.splitlines(keepends=True)
475 with xPath(TEST_URL).open("r", encoding="utf-8") as f:
476 assert list(f) == TEST_URL_CONTENT.splitlines(keepends=True)
477
478
479@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

xopenFunction · 0.90
xPathClass · 0.90
openMethod · 0.80

Tested by

no test coverage detected