refactor(backtest): isolate legacy persistence capabilities (CL33)
This commit is contained in:
parent
24487d35da
commit
ec582bd5e8
14 changed files with 413 additions and 311 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
parseStrategyVersionPackage,
|
||||
validateStrategyParameters,
|
||||
} from '@stock-bot/stock-config/strategy';
|
||||
import { PostgresBacktestRunRepository } from '../../apps/stock/orchestrator/src/backtest/PostgresBacktestRunRepository';
|
||||
import { LegacyBacktestRunWriter } from '../../apps/stock/orchestrator/src/backtest/compatibility/LegacyBacktestRunWriter';
|
||||
import { BacktestService } from '../../apps/stock/web-api/src/services/backtest.service';
|
||||
|
||||
const definition = {
|
||||
|
|
@ -69,7 +69,7 @@ describe('catalog draft and execution contracts', () => {
|
|||
throw new Error('Unexpected write');
|
||||
}),
|
||||
};
|
||||
const repository = new PostgresBacktestRunRepository(database);
|
||||
const repository = new LegacyBacktestRunWriter(database);
|
||||
for (const marker of [
|
||||
{ strategy: 'catalog' },
|
||||
{ strategyVersionId: null },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue