Skip to content

Commit

Permalink
wrote test function to cover the 'transform' function in DOBPlugin to…
Browse files Browse the repository at this point in the history
… attain full coverage
  • Loading branch information
vivitsa-s committed Jan 9, 2024
1 parent 068e8ec commit ad5b8db
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/plugin/text/test_dob_plugin/test_dob_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,15 @@ async def test_get_transcripts_from_utterances(test_case) -> None:
pass



@pytest.mark.asyncio
async def test_invalid_data() -> None:
print("test 3")
train_df = pd.DataFrame(
[
{"data": json.dumps([[{"transcript": "yes"}]])},
{"data": json.dumps({})},
]
)
train_df_ = await get_dob.transform(train_df)
assert len(train_df) - len(train_df_) == 1

0 comments on commit ad5b8db

Please sign in to comment.