Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
added tests for README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed May 14, 2019
1 parent ac491fd commit 69e54fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sphinx_supp_py2/raw_examples/sub/README.md
@@ -1,2 +1,4 @@
Some additional examples in a subfolder
=======================================

This is [a markdown link](https://www.google.de/).
2 changes: 2 additions & 0 deletions tests/sphinx_supp_py3/raw_examples/sub/README.md
@@ -1,2 +1,4 @@
Some additional examples in a subfolder
=======================================

This is [a markdown link](https://www.google.de/).
9 changes: 9 additions & 0 deletions tests/test_sphinx_nbexamples.py
Expand Up @@ -191,6 +191,15 @@ def test_given_thumb(self):
msg=('The wrong picture has been chosen for '
'example_mpl_test_figure_chosen.ipynb'))

def test_md_readme(self):
"""Test the conversion of README.md"""
html_path = osp.join(self.out_dir, 'examples', 'sub', 'index.html')
self.assertTrue(osp.exists(html_path),
msg=html_path + ' is missing!')
with open(html_path) as f:
html = f.read()
self.assertIn('a markdown link</a>', html)


@unittest.skipIf(pathlib is None, 'The pathlib package is required!')
class TestLinkGalleries(BaseTest):
Expand Down

0 comments on commit 69e54fc

Please sign in to comment.