amyreese / markdown-pp

Preprocessor for Markdown files to generate a table of contents and other documentation needs
MIT License
309 stars 68 forks source link

Test #25

Closed leotrs closed 8 years ago

leotrs commented 8 years ago

Before working on another PR, I wanted to implement some basic tests.

amyreese commented 8 years ago

Could you add this to makefile so that running make test will run these unit tests and fail if they fail?

amyreese commented 8 years ago

Looks like you need to add the from __future__ imports to the test cases.

leotrs commented 8 years ago

Using this import in test.py passes all tests:

try:
    from StringIO import StringIO
except ImportError:
    from io import StringIO

It's not pretty, but given that StringIO is only being used in the test suite, it makes sense to branch an import based on python version.

amyreese commented 8 years ago

Thank you!