Browse Source

Merge pull request #332 from benjaminabel/improve-liquid-tags-tests

Little improvement on tests
Justin Mayer 10 years ago
parent
commit
e680fe2831
2 changed files with 10 additions and 1 deletions
  1. 9 0
      liquid_tags/Readme.md
  2. 1 1
      liquid_tags/test_notebook.py

+ 9 - 0
liquid_tags/Readme.md

@@ -163,4 +163,13 @@ comment line ``# <!-- collapse=False -->`` will be open on load but
 can be collapsed by clicking on their header. Cells without collapse
 can be collapsed by clicking on their header. Cells without collapse
 comments are rendered as standard code input cells.
 comments are rendered as standard code input cells.
 
 
+### Run unitests
+
+The file `test_notebook.py` contains tests that can be run using [nose](https://nose.readthedocs.org/en/latest/index.html)
+
+```
+cd path/to/liquid_tags
+nosetests
+```
+
 [<a name="1">1</a>] http://ipython.org/
 [<a name="1">1</a>] http://ipython.org/

+ 1 - 1
liquid_tags/test_notebook.py

@@ -2,7 +2,7 @@ import re
 
 
 from pelican.tests.support import unittest
 from pelican.tests.support import unittest
 
 
-import notebook
+from . import notebook
 
 
 
 
 class TestNotebookTagRegex(unittest.TestCase):
 class TestNotebookTagRegex(unittest.TestCase):