Skip to content

Commit

Permalink
fixed a string in a test_recipe method for classification template ch…
Browse files Browse the repository at this point in the history
…ange

Signed-off-by: Rajmohan <rajmohanc1@in.ibm.com>
  • Loading branch information
csrajmohan authored and elronbandel committed Feb 26, 2024
1 parent adafa12 commit 3284d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/library/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def test_standard_recipe_with_augmentor_on_task_input(self):
stream = recipe()
sample = list(stream["test"])[1]
source = sample["source"]
pattern = "Classify the sentiment of following sentence to one of these options: ((negative, positive)|(positive, negative)). Text: (.*)"
pattern = "Classify the sentiment of following sentence to one of these options: ((negative, positive)|(positive, negative)). sentence: (.*)"
result = re.match(pattern, sample["source"], re.DOTALL)
assert result, f"Unable to find '{pattern}' in '{source}'"
result = result.group(4)
Expand Down

0 comments on commit 3284d41

Please sign in to comment.