Skip to content

Commit

Permalink
Update test_laser_tokenizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NIXBLACK11 authored Nov 19, 2023
1 parent d6963b8 commit 1bb21ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laser_encoders/test_laser_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ def test_encoder_non_normalization(tmp_path: Path, test_readme_params: dict):
def test_optional_lang_with_laser2(tmp_path: Path):
with pytest.warns(
UserWarning,
match="The 'lang' parameter is optional when using 'laser2'. It will be ignored."
match="The 'lang' parameter is optional when using 'laser2'. It will be ignored.",
):
encoder = LaserEncoderPipeline(lang="en", laser="laser2", model_dir=tmp_path)


def test_required_lang_with_laser3(tmp_path: Path):
with pytest.raises(
ValueError,match="For 'laser3', the 'lang' parameter is required."
ValueError, match="For 'laser3', the 'lang' parameter is required."
):
encoder = LaserEncoderPipeline(laser="laser3", model_dir=tmp_path)

Expand Down

0 comments on commit 1bb21ab

Please sign in to comment.