Skip to content

Commit

Permalink
make test-creation evaluation to dump json instead of pickle
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloSynth1 committed Jun 6, 2024
1 parent 4eb9c2d commit c124566
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test_creation/cli/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def evaluate(repo_path: str, report_output_path: str = None,
repository=repo, checklist=checklist)
response = evaluator.run()
if response_output_path:
with open(response_output_path, 'wb') as file:
pickle.dump(response, file)
# with open(response_output_path+".pickle", 'wb') as file:
# pickle.dump(response, file)
json_str = response.model_dump_json()
with open(response_output_path, 'w') as f:
f.write(json_str)

if report_output_path:
parser = ResponseParser(response)
Expand Down

0 comments on commit c124566

Please sign in to comment.