MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

Methodteardown_method
(self)
tests/test_gpu_nvidia.py:147
Methodteardown_method
(self)
tests/test_gpu_nvidia.py:409
Methodtest_acquire_lock_creates_lock_file
(self, mock_file, mock_remove)
tests/test_lock.py:14
Methodtest_acquire_lock_exits_when_lock_file_exists
(self, mock_file, mock_remove)
tests/test_lock.py:21
Methodtest_acquire_release_with_multiple_threads
Test that the lock file is created and removed correctly when multiple threads are used.
tests/test_lock.py:44
Functiontest_add_emission
(client, custom_test_server)
carbonserver/tests/api/routers/test_emissions.py:115
Methodtest_add_emission
(self, mock_push_to_gateway)
tests/output_methods/metrics/test_prometheus.py:89
Methodtest_add_emission_returns_false_on_unsuccessful_post
(self)
tests/test_api_call.py:228
Methodtest_add_emission_returns_false_when_run_creation_fails
(self)
tests/test_api_call.py:175
Methodtest_add_emission_skips_short_duration
(self)
tests/test_api_call.py:202
Functiontest_add_emission_with_custom_wue_value
Test that custom WUE value is properly saved
carbonserver/tests/api/routers/test_emissions.py:263
Functiontest_add_emission_with_default_wue_value
Test that WUE defaults to 0 when not provided
carbonserver/tests/api/routers/test_emissions.py:208
Functiontest_add_experiment
(client, custom_test_server)
carbonserver/tests/api/routers/test_experiments.py:122
Methodtest_add_experiment_returns_none_on_error
(self)
tests/test_api_call.py:291
Functiontest_add_org
(client, custom_test_server)
carbonserver/tests/api/routers/test_organizations.py:73
Functiontest_add_project
(client, custom_test_server)
carbonserver/tests/api/routers/test_projects.py:103
Functiontest_add_project_token
(client, custom_test_server)
carbonserver/tests/api/routers/test_project_tokens.py:58
Functiontest_add_run
(client, custom_test_server)
carbonserver/tests/api/routers/test_runs.py:97
Functiontest_add_telemetry
(client, custom_test_server)
carbonserver/tests/api/routers/test_telemetry.py:44
Methodtest_add_telemetry_posts_call_payload
(self)
tests/test_telemetry_client.py:57
Methodtest_add_telemetry_posts_configured_payload
(self)
tests/test_telemetry_client.py:26
Methodtest_add_telemetry_returns_none_without_payload
(self)
tests/test_telemetry_client.py:101
Methodtest_algorithm_from_dict
(self)
tests/test_boamps_output.py:984
Methodtest_algorithm_serialization
(self)
tests/test_boamps_output.py:150
Functiontest_all_providers_unreadable_returns_false
Verify that is_rapl_available returns False when all main/package domains are unreadable across all providers.
tests/test_rapl_mmio_scanning.py:90
Functiontest_api00_uuid_missing
()
carbonserver/tests/api/integration/test_api_black_box.py:93
Functiontest_api09_organization_create
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:101
Functiontest_api10_organization_read
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:119
Functiontest_api11_organization_list
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:129
Functiontest_api16_project_create
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:137
Functiontest_api16_project_lastrun_empty
Test that empty result works.
carbonserver/tests/api/integration/test_api_black_box.py:149
Functiontest_api18_experiment_create
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:159
Functiontest_api19_experiment_read
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:180
Functiontest_api20_experiment_list
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:186
Functiontest_api21_create_api_project_token
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:192
Functiontest_api21_run_create
()
carbonserver/tests/api/integration/test_api_black_box.py:238
Functiontest_api21_run_create2
()
carbonserver/tests/api/integration/test_api_black_box.py:244
Functiontest_api22_run_read
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:250
Functiontest_api23_run_list
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:257
Functiontest_api24_runs_for_experiment_list
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:264
Functiontest_api25_emission_create
()
carbonserver/tests/api/integration/test_api_black_box.py:313
Functiontest_api26_emission_list
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:324
Functiontest_api27_emission_read
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:332
Functiontest_api27_read_all
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:342
Functiontest_api29_experiment_read_detailed_sums
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:359
Functiontest_api30_run_read_detailed_sums
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:399
Functiontest_api31_project_read_detailed_sums
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:433
Functiontest_api32_organization_read_detailed_sums
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:462
Functiontest_api33_project_read_last_run
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:495
Functiontest_api34_project_api_token_delete
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:504
Functiontest_api35_organization_read_users
(user_session)
carbonserver/tests/api/integration/test_api_black_box.py:510
Functiontest_api_get_calls_api_and_prints
(monkeypatch)
tests/cli/test_cli_main.py:35
Functiontest_api_get_uses_get_api_endpoint
(monkeypatch)
tests/cli/test_cli_main.py:45
Methodtest_api_read_only
(self)
tests/test_api_call.py:49
Methodtest_app
(self, MockApiClient)
tests/cli/test_cli.py:49
Methodtest_apple_powermetrics
(self)
tests/test_powermetrics.py:27
Methodtest_attributeerror_sets_amdsmi_unavailable
AttributeError during amdsmi import must disable AMD GPU support.
tests/test_gpu_amd.py:449
Methodtest_auth_handler
(self, mock_basic_auth_handler)
tests/output_methods/metrics/test_prometheus.py:77
Methodtest_authorize_raises_on_callback_error
( self, mock_discover, mock_session_cls, mock_server_cls )
tests/cli/test_cli_auth.py:284
Methodtest_authorize_raises_when_no_callback_received
( self, mock_discover, mock_session_cls, mock_server_cls )
tests/cli/test_cli_auth.py:318
Methodtest_authorize_success
( self, mock_discover, mock_session_cls, mock_server_cls, mock_browser
tests/cli/test_cli_auth.py:240
Functiontest_backup
()
tests/test_core_util.py:43
Functiontest_basic_functionality
Test basic package functionality works.
tests/test_package_integrity.py:108
Methodtest_cache_populated_at_import
Verify that _CACHE is populated when module is imported.
tests/test_input.py:14
Methodtest_calculate_ram_power
Test RAM power calculation with different system configurations
tests/test_ram.py:303
Methodtest_call_api
(self)
tests/test_api_call.py:61
Methodtest_camel_to_snake_conversion
(self)
tests/test_boamps_output.py:122
Functiontest_can_create_run
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:128
Functiontest_can_read_organization
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:104
Functiontest_can_read_private_project_with_auth
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:81
Functiontest_can_read_private_project_without_auth
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:94
Functiontest_can_read_public_project
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:71
Functiontest_can_write_organization
(auth_context)
carbonserver/tests/api/service/test_auth_context.py:116
Methodtest_carbon_tracker_TWO_GPU_PRIVATE_INFRA_CANADA
( self, mock_cli_setup, mock_log_values, mocked_get_gpu_details, mocke
tests/test_emissions_tracker.py:87
Methodtest_carbon_tracker_custom_handler
(self)
tests/test_custom_handler.py:29
Methodtest_carbon_tracker_offline_constant
(self)
tests/test_emissions_tracker_constant.py:53
Methodtest_carbon_tracker_offline_constant_force_cpu_power
( self, mock_tdp, mock_psutil )
tests/test_emissions_tracker_constant.py:69
Methodtest_carbon_tracker_offline_context_manager
( self, mock_cli_setup, mock_log_values, mocked_get_gpu_details, mocke
tests/test_emissions_tracker.py:721
Methodtest_carbon_tracker_offline_flush
(self)
tests/test_emissions_tracker_flush.py:56
Methodtest_carbon_tracker_offline_load_force_cpu_power
(self, mock_tdp, mock_psutil)
tests/test_emissions_tracker_constant.py:94
Methodtest_carbon_tracker_offline_logging_output
(self)
tests/test_logging_output.py:63
Methodtest_carbon_tracker_offline_region_error
(self)
tests/test_emissions_tracker_constant.py:141
Methodtest_carbon_tracker_online_constant
(self)
tests/test_emissions_tracker_constant.py:41
Methodtest_carbon_tracker_online_context_manager_TWO_GPU_PRIVATE_INFRA_CANADA
( self, mock_cli_setup, mock_log_values, mocked_get_gpu_details, mocke
tests/test_emissions_tracker.py:575
Methodtest_carbon_tracker_online_flush
(self)
tests/test_emissions_tracker_flush.py:38
Methodtest_carbon_tracker_online_logging_output
(self)
tests/test_logging_output.py:47
Methodtest_carbon_tracker_timeout
( self, mocked_requests_get, mock_cli_setup, mock_log_values, mocked_g
tests/test_emissions_tracker.py:149
Methodtest_check_auth_returns_none_on_error
(self)
tests/test_api_call.py:140
Methodtest_check_energy_file_warns_on_permission_denied
(self)
tests/test_cpu.py:120
Methodtest_check_organization_exists_returns_false_when_list_fails
(self)
tests/test_api_call.py:151
Functiontest_check_user_from_jwt
(_)
carbonserver/tests/api/service/test_sign_up_service.py:126
Methodtest_clean_env_key
(self)
tests/test_config.py:41
Functiontest_cli_import
Test that CLI can be imported (basic smoke test).
tests/test_package_integrity.py:123
Functiontest_client_create_payloads_validate_against_server_schemas
( client_payload, server_schema )
carbonserver/tests/api/test_schema_compatibility.py:117
Functiontest_client_create_schemas_match_server_fields
(client_schema, server_schema)
carbonserver/tests/api/test_schema_compatibility.py:34
Methodtest_cloud_detection
on_cloud='Y' -> infraType='publicCloud' with cloud_provider.
tests/test_boamps_output.py:410
Methodtest_cloud_detection_from_provider_when_on_cloud_is_N
cloud_provider is used as secondary signal when on_cloud='N'.
tests/test_boamps_output.py:421
Methodtest_cloud_metadata_AWS
(self, mock_get_env_cloud_details)
tests/test_geography.py:23
Methodtest_cloud_metadata_AZURE
(self, mock_get_env_cloud_details)
tests/test_geography.py:38
Methodtest_cloud_metadata_GCP
(self, mock_get_env_cloud_details)
tests/test_geography.py:53
← previousnext →1,201–1,300 of 1,889, ranked by callers