File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22from pydantic import ValidationError
33
44from codeflash .api .aiservice import AiServiceClient
5- from codeflash .models .models import CodeString
5+ from codeflash .models .models import CodeString , OptimizedCandidateSource
66
77
88def test_python_string ():
@@ -55,7 +55,7 @@ def test_generated_candidates_validation():
5555 "optimization_id" : ""
5656 }
5757 ]
58- candidates = ai_service ._get_valid_candidates (mock_generate_candidates )
58+ candidates = ai_service ._get_valid_candidates (mock_generate_candidates , OptimizedCandidateSource . OPTIMIZE )
5959 assert len (candidates ) == 0
6060 code = """```python:file.py
6161print('Hello, World!')
@@ -67,5 +67,5 @@ def test_generated_candidates_validation():
6767 "optimization_id" : ""
6868 }
6969 ]
70- candidates = ai_service ._get_valid_candidates (mock_generate_candidates )
70+ candidates = ai_service ._get_valid_candidates (mock_generate_candidates , OptimizedCandidateSource . OPTIMIZE )
7171 assert len (candidates ) == 1
You can’t perform that action at this time.
0 commit comments