-
Notifications
You must be signed in to change notification settings - Fork 3
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
adding generate_a_HtmlFile_from_mdFile test #17
Conversation
Thank you for your PR. |
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.
The test did not pass. I think the reason is the destination ../TextHTMLPress/dist
does not exist on GitHub.
test.py
Outdated
lang = "fr" | ||
g=Generator(inp,output,stylesheet,lang) | ||
g.parse_markdown(inp) | ||
assert expectedOutputFile.exists() |
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.
The above line might be changed something as """<title>Zen</title>
Somebody
2021-10-15
Zen
Section 1
Simple is better than complex.
Although practicality beats purity.
Section 2
Need more practice.
"""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.
It is so strange when I test it local and all tests pass
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 got it, I forgot to generate wrapper in the test
I will merge now, but I am wondering if we should remove the expectedOutputFile first such as |
Hi Qiwen-Yu, I added 1 test to check if an HTML file will be generated in the expected destination if the user passes in an MD file.
Thank you :)