fix: clean up utcnow deprecation warnings, fix 12 failing tests, add CI/CD pipeline manifests
- Replace all datetime.utcnow() with datetime.now(tz=timezone.utc) across 8 files - Fix 12 failing tests to match current implementation behavior - Fix pytest_plugins in non-top-level conftest (moved to root conftest.py) - Auto-fix 189 lint issues (import sorting, unused imports) - Add CI/CD pipeline infrastructure (ARC, ArgoCD, Kargo manifests) - Add values-beta.yaml and values-paper.yaml for staged deployments - Update GitHub Actions workflow to use self-hosted-gremlin runners - Add integration-test job to CI pipeline Result: 1596 passed, 0 failed, 0 warnings
This commit is contained in:
+7
-7
@@ -19,7 +19,6 @@ from services.shared.audit import (
|
||||
AUDIT_TRADING_MODE_CHANGED,
|
||||
)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Event type constants
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -107,14 +106,14 @@ class TestAuditModuleStructure:
|
||||
|
||||
def test_convenience_helpers_exist(self):
|
||||
from services.shared.audit import (
|
||||
audit_recommendation_generated,
|
||||
audit_risk_evaluated,
|
||||
audit_order_submitted,
|
||||
audit_duplicate_prevented,
|
||||
audit_order_cancelled,
|
||||
audit_order_filled,
|
||||
audit_order_rejected,
|
||||
audit_order_cancelled,
|
||||
audit_duplicate_prevented,
|
||||
audit_order_submitted,
|
||||
audit_position_change,
|
||||
audit_recommendation_generated,
|
||||
audit_risk_evaluated,
|
||||
audit_trading_mode_changed,
|
||||
)
|
||||
for fn in [
|
||||
@@ -132,8 +131,8 @@ class TestAuditModuleStructure:
|
||||
|
||||
def test_query_helpers_exist(self):
|
||||
from services.shared.audit import (
|
||||
get_order_audit_trail,
|
||||
get_entity_audit_trail,
|
||||
get_order_audit_trail,
|
||||
)
|
||||
assert callable(get_order_audit_trail)
|
||||
assert callable(get_entity_audit_trail)
|
||||
@@ -150,6 +149,7 @@ class TestBrokerServiceAuditImports:
|
||||
def test_broker_service_has_audit_calls(self):
|
||||
"""The broker service module should reference audit functions."""
|
||||
import inspect
|
||||
|
||||
import services.adapters.broker_service as bs
|
||||
|
||||
source = inspect.getsource(bs)
|
||||
|
||||
Reference in New Issue
Block a user