Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ json
Method
json
tests/cli/test_cli_main.py:192–193 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
190
191
class
FakeResponse:
192
def
json(self):
193
return
{
"token"
:
"project-api-token"
}
194
195
def
fake_post(url, json, headers):
196
captured[
"url"
] = url
Callers
15
configure_fief
Function · 0.80
add_telemetry
Method · 0.80
get_emissions
Function · 0.80
get_env_cloud_details
Function · 0.80
check_auth
Method · 0.80
get_list_organizations
Method · 0.80
create_organization
Method · 0.80
get_organization
Method · 0.80
update_organization
Method · 0.80
list_projects_from_organization
Method · 0.80
create_project
Method · 0.80
get_project
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected