belel-protocol / src /grok /tests /test_link_fetcher.py
TTOPM's picture
Upload 313 files
6b53875 verified
Raw History Blame Contribute Delete
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