KeenWoo commited on
Commit
2305699
·
verified ·
1 Parent(s): 456a72a

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +7 -7
evaluate.py CHANGED
@@ -122,12 +122,12 @@ def load_test_fixtures():
122
  # The old code used a relative path, which is unreliable.
123
  # This new code builds an absolute path to the fixture file based on
124
  # the location of this (evaluate.py) script.
125
- script_dir = Path(__file__).parent
126
- default_fixture_file = script_dir / "small_test_cases_v10.jsonl"
127
-
128
- candidates = [env_path] if env_path else [str(default_fixture_file)]
129
  # --- END: DEFINITIVE FIX ---
130
- # candidates = [env_path] if env_path else ["conversation_test_fixtures_v10.jsonl"]
131
  # candidates = [env_path] if env_path else ["small_test_cases_v10.jsonl"]
132
 
133
  path = next((p for p in candidates if p and os.path.exists(p)), None)
@@ -136,8 +136,8 @@ def load_test_fixtures():
136
  return
137
 
138
  # Use the corrected v10 file if available
139
- # if "conversation_test_fixtures_v10.jsonl" in path:
140
- if "small_test_cases_v10.jsonl" in path:
141
  print(f"Using corrected test fixtures: {path}")
142
 
143
  with open(path, "r", encoding="utf-8") as f:
 
122
  # The old code used a relative path, which is unreliable.
123
  # This new code builds an absolute path to the fixture file based on
124
  # the location of this (evaluate.py) script.
125
+ #script_dir = Path(__file__).parent
126
+ #default_fixture_file = script_dir / "small_test_cases_v10.jsonl"
127
+ #candidates = [env_path] if env_path else [str(default_fixture_file)]
128
+
129
  # --- END: DEFINITIVE FIX ---
130
+ candidates = [env_path] if env_path else ["conversation_test_fixtures_v10.jsonl"]
131
  # candidates = [env_path] if env_path else ["small_test_cases_v10.jsonl"]
132
 
133
  path = next((p for p in candidates if p and os.path.exists(p)), None)
 
136
  return
137
 
138
  # Use the corrected v10 file if available
139
+ if "conversation_test_fixtures_v10.jsonl" in path:
140
+ # if "small_test_cases_v10.jsonl" in path:
141
  print(f"Using corrected test fixtures: {path}")
142
 
143
  with open(path, "r", encoding="utf-8") as f: