Skip to content

Commit

Permalink
Added DESCRIPTION.rst to doctest file.
Browse files Browse the repository at this point in the history
  • Loading branch information
lenards committed Nov 21, 2013
1 parent bc79208 commit 3602390
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion KISSmetrics/tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
# We avoid using doctest.DocFileSuite so the tests are runnable by both py.test
# and unittest.
class DocTestCase(unittest.TestCase):
def test_docs(self):
def test_readme(self):
failure_count, test_count \
= doctest.testfile('../../README.md', optionflags=doctest.ELLIPSIS)
assert failure_count == 0

def test_long_description(self):
failure_count, test_count \
= doctest.testfile('../../DESCRIPTION.rst', optionflags=doctest.ELLIPSIS)
assert failure_count == 0


if __name__ == '__main__':
unittest.main()

0 comments on commit 3602390

Please sign in to comment.