MCPcopy Create free account
hub / github.com/apify/impit / test_json

Method test_json

impit-python/test/no_client_test.py:317–321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

315 assert response.content.decode('utf-8') == response.text
316
317 def test_json(self) -> None:
318 response = impit.get(get_httpbin_url('/get'))
319
320 assert response.status_code == 200
321 assert response.json() == json.loads(response.text)
322
323
324class TestStreamRequest:

Callers

nothing calls this directly

Calls 3

get_httpbin_urlFunction · 0.85
getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected