-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unit test #27
Unit test #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good already!
I would add some more tests:
- if the directory does not contain eml or html files (the list is empty), the function
list_of_files
should throw an exception (for example, aRunTimeError
, or maybe you find a better one - the directory does not exist - here we again need an exception in the original function
- a test that the list only contains eml or html files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would include the additional tests with the push for #21
Quality Gate passedIssues Measures |
Can I merge this branch? |
Ah ok , you want to include the exceptions in the new branch with better test coverage. Ok sure. |
Added the first unit test.
Checked that both an empty and a filled dir are detected properly