mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
test: add end-to-end test for complete simulation workflow
- Created comprehensive E2E test in tests/e2e/test_full_simulation_workflow.py - Tests new trading_days schema with manually populated data - Verifies database helper methods work correctly - Tests Results API structure and filtering - Validates holdings chain across multiple days - Checks daily P&L calculation and storage - Verifies reasoning summary/full retrieval - Fixed database index creation for backward compatibility with old schema - Added migration script for cleaning old positions table - Test uses dependency override to ensure API uses correct database NOTE: Test does not run full simulation since model_day_executor has not yet been migrated to new schema. Instead directly populates trading_days table and validates API layer works correctly. Test verifies Task 9 requirements from implementation plan.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
"""
|
||||
Trade execution tool for MCP interface.
|
||||
|
||||
NOTE: This module uses the OLD positions table schema.
|
||||
It is being replaced by the new trading_days schema.
|
||||
Trade operations will be migrated to use the new schema in a future update.
|
||||
"""
|
||||
|
||||
from fastmcp import FastMCP
|
||||
import sys
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user