diff --git a/tests/test__main__/test_main_build_scenarios.py b/tests/test__main__/test_main_build_scenarios.py index 5df3d8491..baae2d092 100644 --- a/tests/test__main__/test_main_build_scenarios.py +++ b/tests/test__main__/test_main_build_scenarios.py @@ -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']) @@ -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):