Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sukriti-Sharma4 <[email protected]>
  • Loading branch information
Ssukriti committed May 24, 2024
1 parent 45827ce commit 1f6bb04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/utils/test_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def test_formatting_function():
template = "### Input: {{Tweet text}} \n\n ### Response: {{text_label}}"
# First response from the data file that is read.
expected_response = (
"### Input: No this is my first job \n\n ### Response: no complaint"
"### Input: @HMRCcustomers No this is my first job"
+ " \n\n ### Response: no complaint"
)
formatted_dataset, dataset_text_field = data_utils.formatting_function(
json_dataset, template
Expand All @@ -46,7 +47,8 @@ def test_formatting_function_adds_eos_token():
template = "### Input: {{Tweet text}} \n\n ### Response: {{text_label}}"
# First response from the data file that is read.
expected_response = (
"### Input: No this is my first job \n\n ### Response: no complaintEOS"
"### Input: @HMRCcustomers No this is my first job"
+ " \n\n ### Response: no complaintEOS"
)
formatted_dataset, dataset_text_field = data_utils.formatting_function(
json_dataset, template, "EOS"
Expand Down

0 comments on commit 1f6bb04

Please sign in to comment.