Skip to content

Commit

Permalink
Handling html_static_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Sep 2, 2016
1 parent d776287 commit 10188d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test__main__/test_main_build_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ def test_banner_css_override(banner, local_docs, run):
:param local_docs: conftest fixture.
:param run: conftest fixture.
"""
local_docs.join('conf.py').write("html_context = {'css_files': ['_static/theme_overrides.css']}", mode='a')
local_docs.join('conf.py').write("html_context = {'css_files': ['_static/theme_overrides.css']}\n", mode='a')
local_docs.join('conf.py').write("html_static_path = ['_static']\n", mode='a')
run(local_docs, ['git', 'commit', '-am', 'Setting override.'])
run(local_docs, ['git', 'checkout', '-b', 'other', 'master'])
run(local_docs, ['git', 'push', 'origin', 'master', 'other'])
Expand All @@ -627,6 +628,7 @@ def test_banner_css_override(banner, local_docs, run):
# Check CSS.
contents = destination.join('other', 'contents.html').read()
assert 'rel="stylesheet" href="_static/banner.css"' in contents
assert destination.join('other', '_static', 'banner.css').check(file=True)


def test_error_bad_path(tmpdir, run):
Expand Down

0 comments on commit 10188d8

Please sign in to comment.