Skip to content
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

Merged
merged 26 commits into from
Aug 1, 2024
Merged

Unit test #27

merged 26 commits into from
Aug 1, 2024

Conversation

Olthoff231381
Copy link
Collaborator

Added the first unit test.
Checked that both an empty and a filled dir are detected properly

Copy link
Member

@iulusoy iulusoy left a 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, a RunTimeError, 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

Copy link
Collaborator Author

@Olthoff231381 Olthoff231381 left a 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

Copy link

sonarcloud bot commented Jul 31, 2024

@Olthoff231381
Copy link
Collaborator Author

Can I merge this branch?

@iulusoy
Copy link
Member

iulusoy commented Aug 1, 2024

Ah ok , you want to include the exceptions in the new branch with better test coverage. Ok sure.

@Olthoff231381 Olthoff231381 merged commit ea0ebf5 into main Aug 1, 2024
5 checks passed
@Olthoff231381 Olthoff231381 deleted the unitTest branch August 1, 2024 06:21
@Olthoff231381 Olthoff231381 restored the unitTest branch August 1, 2024 06:21
@Olthoff231381 Olthoff231381 deleted the unitTest branch August 1, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants