We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722d3d2 commit 4a25e45Copy full SHA for 4a25e45
eval_protocol/cli_commands/local_test.py
@@ -165,12 +165,8 @@ def local_test_command(args: argparse.Namespace) -> int:
165
print("Error: Please select exactly one evaluation test for 'local-test'.")
166
return 1
167
chosen = selected[0]
168
- abs_path = os.path.abspath(chosen.file_path)
169
- try:
170
- rel = os.path.relpath(abs_path, project_root)
171
- except Exception:
172
- rel = abs_path
173
- pytest_target = rel
+ func_name = chosen.qualname.split(".")[-1]
+ pytest_target = _build_entry_point(project_root, chosen.file_path, func_name)
174
175
ignore_docker = bool(getattr(args, "ignore_docker", False))
176
build_extras_str = getattr(args, "docker_build_extra", "") or ""
0 commit comments