Skip to content

Commit

Permalink
Fix bug in unit test mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed May 8, 2024
1 parent 2397944 commit 2c9d081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def test_validator_valid(self):

def test_validator_invalid(self):
tts = DummyTTS("", {})
tts.validator.validate_lang = Mock(return_value=False)
tts.validator.validate_lang = Mock(side_effect=Exception("Validation Error"))

with self.assertRaises(Exception):
tts.validator.validate()
Expand Down

0 comments on commit 2c9d081

Please sign in to comment.