-
Notifications
You must be signed in to change notification settings - Fork 2
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
create html folder if doesn't exist #3
Conversation
Pull Request Test Coverage Report for Build 36
💛 - Coveralls |
Thanks. Please also add a test covering the new code. |
How do I do that? The test case is not having an html folder in the slides repo. |
Write a test case that would try to put the html files in a subdirectory of tmpdir (e.g. call it abcd just to make sure we don't overuse the 'html' string) and check if that works properly. |
root = str(tmpdir) | ||
target_dir = os.path.join(root, 'abcd') | ||
generate_html_files(self, target_dir) | ||
assert os.path.exists(target_dir) == 1 |
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.
One minor thing. this should be
assert os.path.exists(target_dir)
as that method returns True/False
Merged and I made that change myself. |
Thanks |
Got it. Thanks for the explanation. |
No description provided.