99def test_pipeline_phases ():
1010 """Test that all 4 phases execute"""
1111 mock_orch = Mock ()
12+ mock_orch .models_config = {}
1213 mock_orch .generate .return_value = "test output"
1314
1415 pipeline = TRVPipeline (mock_orch , {})
@@ -19,7 +20,7 @@ def test_pipeline_phases():
1920 pipeline ._phase3_critic = Mock (return_value = "PASS" )
2021 pipeline ._phase4_synthesis = Mock (return_value = "final" )
2122
22- result = pipeline .execute ("query" , "hindi" , enable_critic = True )
23+ result = pipeline .execute ("query" , "hindi" , enable_critic = True , enable_deep_cot = False )
2324
2425 # Verify all phases called
2526 pipeline ._phase1_ingestion .assert_called_once ()
@@ -32,6 +33,7 @@ def test_pipeline_phases():
3233def test_critic_loop ():
3334 """Test critic iteration logic"""
3435 mock_orch = Mock ()
36+ mock_orch .models_config = {}
3537 pipeline = TRVPipeline (mock_orch , {})
3638
3739 # First critic fails, second passes
@@ -40,7 +42,7 @@ def test_critic_loop():
4042 pipeline ._phase1_ingestion = Mock (return_value = "english" )
4143 pipeline ._phase4_synthesis = Mock (return_value = "final" )
4244
43- result = pipeline .execute ("query" , "hindi" , enable_critic = True )
45+ result = pipeline .execute ("query" , "hindi" , enable_critic = True , enable_deep_cot = False )
4446
4547 # Should have 2 critic calls (fail then pass)
4648 assert pipeline ._phase3_critic .call_count == 2
0 commit comments