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

create html folder if doesn't exist #3

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

leora-betesh
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Feb 21, 2018

Pull Request Test Coverage Report for Build 36

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.4%) to 79.808%

Files with Coverage Reduction New Missed Lines %
slider/init.py 2 79.81%
Totals Coverage Status
Change from base Build 31: 0.4%
Covered Lines: 166
Relevant Lines: 208

💛 - Coveralls

@szabgab
Copy link
Owner

szabgab commented Feb 21, 2018

Thanks. Please also add a test covering the new code.

@leora-betesh
Copy link
Contributor Author

How do I do that? The test case is not having an html folder in the slides repo.

@szabgab
Copy link
Owner

szabgab commented Feb 21, 2018

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
Copy link
Owner

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

@szabgab szabgab merged commit d8aedd2 into szabgab:master Feb 21, 2018
@szabgab
Copy link
Owner

szabgab commented Feb 21, 2018

Merged and I made that change myself.

@szabgab
Copy link
Owner

szabgab commented Feb 21, 2018

Thanks

@leora-betesh
Copy link
Contributor Author

Got it. Thanks for the explanation.

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.

None yet

3 participants