MCPcopy Create free account
hub / github.com/blockfrost/blockfrost-python / test_root

Function test_root

tests/test_api.py:6–13  ·  view source on GitHub ↗
(requests_mock)

Source from the content-addressed store, hash-verified

4
5
6def test_root(requests_mock):
7 api = BlockFrostApi()
8 mock_data = {
9 "url": "https://blockfrost.io/",
10 "version": "0.1.0"
11 }
12 requests_mock.get(api.url + '/', json=mock_data)
13 assert api.root() == convert_json_to_object(mock_data)
14
15
16def test_integration_root():

Callers

nothing calls this directly

Calls 3

rootMethod · 0.95
BlockFrostApiClass · 0.90
convert_json_to_objectFunction · 0.90

Tested by

no test coverage detected