Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /terrene-foundation_kailash-py /packages /kaizen-agents /tests /conftest.py
| """ | |
| Test configuration for kaizen-agents package. | |
| Provides shared fixtures for the agent engine tests migrated from kailash-kaizen. | |
| """ | |
| import os | |
| # Cost-guard moved to the package-root conftest (packages/kaizen-agents/conftest.py) | |
| # so an explicit `pytest packages/kaizen-agents/examples/...` invocation is | |
| # covered too (#1848). The package-root guard fires for this tests/ subtree as well. | |
| # Unit-tier deterministic model default (issue-822 pattern): supervisor / | |
| # governance tests construct agents that resolve the model from the | |
| # environment (kaizen.errors.EnvModelMissing otherwise). No kaizen-agents | |
| # test asserts the missing-var path; tests that need a specific model | |
| # override per-test. setdefault preserves any operator/.env value. | |
| os.environ.setdefault("KAIZEN_DEFAULT_MODEL", "gpt-4o-mini") | |
| # Check if we should use real providers (for E2E/integration tests) | |
| use_real_providers = os.getenv("USE_REAL_PROVIDERS", "").lower() == "true" | |
| if not use_real_providers: | |
| try: | |
| import kaizen.nodes.ai.ai_providers as ai_providers_module | |
| from tests.utils.kaizen_mock_provider import KaizenMockProvider | |
| ai_providers_module.PROVIDERS["mock"] = KaizenMockProvider | |
| ai_providers_module.MockProvider = KaizenMockProvider | |
| except (ImportError, AttributeError): | |
| pass # AI provider modules not available | |
Xet Storage Details
- Size:
- 1.35 kB
- Xet hash:
- eef69cd59406bf3cfa373729f39f327cb311ebb83a80316991f8330e04e0561c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.