fix(test): convert soft warnings to hard failures in architecture test #908

Merged
freemo merged 2 commits from fix/integration-architecture-warn-to-fail into master 2026-03-14 03:39:28 +00:00
2 changed files with 19 additions and 18 deletions
+13 -18
View File
@@ -32,8 +32,7 @@ Package Init Files Should Have Docstrings
${exists}= Run Keyword And Return Status File Should Exist ${init_file}
IF ${exists}
${content}= Get File ${init_file}
${has_docstring}= Run Keyword And Return Status Should Contain ${content} """
Run Keyword If not ${has_docstring} Log Missing docstring in ${package}/__init__.py WARN
Should Contain ${content} """ Missing docstring in ${package}/__init__.py
END
END
@@ -67,26 +66,22 @@ Type Marker Should Exist
Configuration Should Use CLEVERAGENTS Prefix
[Documentation] Verify environment variables use correct prefix
${settings_file}= Set Variable ${SRC_DIR}/config/settings.py
${exists}= Run Keyword And Return Status File Should Exist ${settings_file}
IF ${exists}
${content}= Get File ${settings_file}
# Check for CLEVERAGENTS_ prefix
${matches}= Get Regexp Matches ${content} CLEVERAGENTS_[A-Z_]+
${count}= Get Length ${matches}
Should Be True ${count} > 0 No CLEVERAGENTS_ variables found in settings
END
File Should Exist ${settings_file}
${content}= Get File ${settings_file}
# Check for CLEVERAGENTS_ prefix
${matches}= Get Regexp Matches ${content} CLEVERAGENTS_[A-Z_]+
${count}= Get Length ${matches}
Should Be True ${count} > 0 No CLEVERAGENTS_ variables found in settings
Core Exception Hierarchy Should Be Defined
[Documentation] Verify exception hierarchy from ADR-005
${exceptions_file}= Set Variable ${SRC_DIR}/core/exceptions.py
${exists}= Run Keyword And Return Status File Should Exist ${exceptions_file}
IF ${exists}
${content}= Get File ${exceptions_file}
Should Contain ${content} class CleverAgentsError
Should Contain ${content} class DomainError
Should Contain ${content} class InfrastructureError
Should Contain ${content} class ValidationError
END
File Should Exist ${exceptions_file}
${content}= Get File ${exceptions_file}
Should Contain ${content} class CleverAgentsError
Should Contain ${content} class DomainError
Should Contain ${content} class InfrastructureError
Should Contain ${content} class ValidationError
*** Keywords ***
List Files In Directory
+6
View File
@@ -1,3 +1,9 @@
"""Providers Layer - AI Model Provider Integrations.
This package handles AI model provider implementations, cost tracking,
fallback selection, and provider registry management.
"""
from .cost_table import CostEntry, ProviderCostTable
from .cost_tracker import BudgetCheckResult, BudgetStatus, CostTracker
from .fallback_selector import FallbackResult, FallbackSelector