Orchestrata Ultimate › Tests › Reference › test_providers

Tests reference — tests/test_providers.py

Module of tests, split out because the directory page would be too large.

Prose pending.

tests/test_providers.py

source · 18 tests · 191 lines

Tests for orchestrata_ultimate.providers module.

Covers: providers.circuit_breaker, providers.cost_tracker, providers.rate_limiter, core.interfaces/ (package)

Kind Name Line Description
function test_circuit_breaker_initial_state_closed 25
function test_circuit_breaker_opens_after_threshold 32
function test_circuit_breaker_success_resets_failure_count 41
function test_circuit_breaker_half_open_after_cooldown 51
function test_circuit_breaker_closed_from_half_open_after_successes 64
function test_circuit_breaker_reset 76
function test_rate_limiter_initial_available 91
function test_rate_limiter_headroom_decreases_with_requests 98
function test_rate_limiter_low_headroom_flag 106
function test_rate_limiter_status_dict_structure 115
function test_rate_limiter_token_count_tracking 125
function test_cost_tracker_calculate_cost_zero_usage 136
function test_cost_tracker_calculate_cost_correct_math 145
function test_cost_tracker_calculate_cost_partial_million 155
function test_cost_tracker_check_budget_no_limit_allows 164
function test_cost_tracker_get_usage_no_redis_returns_empty 171
function test_cost_tracker_get_remaining_budget_no_redis 179
function test_cost_tracker_set_budget_stores_limit 188