-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #565 by raising an Exception for an empty String #566
Conversation
Great, thanks for adding this! |
👍 |
@Bharat123rox Thanks! Could you also add a small unit test for that case (=empty sentence)? That would be great :) |
@stefan-it good point! Once the unit test is there, could you +1 and merge? |
Sure, no problem :) |
@stefan-it Should I add a separate function in with pytest.raises(ValueError) as e:
assert(e.info) == "My error message" if not, how do I go about ensuring that it raises the required exception? |
@stefan-it @alanakbik Will this be enough? How else should I test it? |
Looks good to me! @kashif @MichaelHintz @stefan-it can one of you check, +1 and merge? |
@alanakbik In case it looks good to you, please approve this PR, the approval seems to get reset on each new commit made. |
👍 |
1 similar comment
👍 |
thanks @Bharat123rox |
thanks @kashif and @stefan-it for your patience |
Fix #565 by raising a
ValueError
for an empty string.