Download src/grok/tests/test_link_fetcher.py from TTOPM/belel-protocol: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/grok/tests/test_link_fetcher.py
- Command line
-
hf download hf://TTOPM/belel-protocol/src/grok/tests/test_link_fetcher.py
-
curl -L -o test_link_fetcher.py https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/grok/tests/test_link_fetcher.py
224 Bytes
| from grok.grok_link_fetcher import LinkFetcher | |
| def test_file_json(tmp_path): | |
| p = tmp_path / "w.json" | |
| p.write_text('{"ok":true}') | |
| r = LinkFetcher().fetch_json(str(p)) | |
| assert r.ok and r.json_data["ok"] is True | |