Skip to content

Commit

Permalink
modified to add class 7 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vivitsaS committed Jan 9, 2024
1 parent 44006ce commit 068e8ec
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/plugin/text/test_dob_plugin/test_dob_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ async def test_transform_invalid_date(test_case) -> None:
"""
These test cases cover different scenarios:
- A valid transcript with no transformation needed.
- Class 4 transformation scenario
- Class 5 transformation scenario (hours and minutes).
- Class 6 transformation scenario (numeric and word representation).
- Combined transformations from both Class 5 and Class 6.
- Class 7 transformation scenario
- Combined transformations from both Class 4,5,6,7.
"""
try:
if test_case["function"]=="transform_invalid_transcript":
if test_case["function"]=="transform_invalid_transcript":
print("testing function:",test_case["function"])
print("description:",test_case["description"])
result = await _transform_invalid_date(test_case["transcript"])
result = _transform_invalid_date(test_case["transcript"])
print("result = ", result)
print("expected = ",test_case["expected"])
assert result == test_case["expected"]
except:
pass


@pytest.mark.asyncio
@pytest.mark.parametrize("test_case", load_tests("cases", __file__))
Expand Down

0 comments on commit 068e8ec

Please sign in to comment.