Skip to content

Commit

Permalink
Refs #14 - Make sure there are doctests in README, and they pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitbryon committed Aug 1, 2015
1 parent a6f8535 commit d4a247f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/doctests.py
@@ -1,10 +1,8 @@
import os

import doctest

here = os.path.dirname(os.path.abspath(__file__))
project_dir = os.path.dirname(here)


def test_doctests():
doctest.testfile('../README.rst')
def test_readme():
"""README contains doctests, they all pass."""
result = doctest.testfile('../README.rst')
assert result.attempted != 0
assert result.failed == 0

0 comments on commit d4a247f

Please sign in to comment.