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

Method test_json

impit-python/test/basic_client_test.py:505–511  ·  view source on GitHub ↗
(self, browser: Browser)

Source from the content-addressed store, hash-verified

503 assert response.content.decode('utf-8') == response.text
504
505 def test_json(self, browser: Browser) -> None:
506 impit = Client(browser=browser)
507
508 response = impit.get(get_httpbin_url('/get'))
509
510 assert response.status_code == 200
511 assert response.json() == json.loads(response.text)
512
513
514@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
ClientClass · 0.90
get_httpbin_urlFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected