Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: Ensure enum is serialized as value
  • Loading branch information
kdestin committed Feb 27, 2024
commit ca597ce8f2ae13d03f9b0ad076c36290b7752976
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_export_format(self, qa_type, structure):
qa_generator = QADataGenerator(model_config)
qas = list(zip(questions, answers))
filepath = os.path.join(pathlib.Path(__file__).parent.parent.resolve(), "data")
output_file = os.path.join(filepath, f"test_{qa_type}_{structure}.jsonl")
output_file = os.path.join(filepath, f"test_{qa_type.value}_{structure.value}.jsonl")
qa_generator.export_to_file(output_file, qa_type, qas, structure)

if qa_type == QAType.CONVERSATION and structure == OutputStructure.CHAT_PROTOCOL:
Expand Down