diff options
Diffstat (limited to 'tests/test_commands.py')
| -rw-r--r-- | tests/test_commands.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py new file mode 100644 index 0000000..5c2370a --- /dev/null +++ b/tests/test_commands.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals, absolute_import + +# This code is so you can run the samples without installing the package, +# and should be before any import touching nikola, in any file under tests/ +import os +import sys +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) + +import unittest + +from nikola.plugins.command.version import CommandVersion + + +class CommandVersionCallTest(unittest.TestCase): + def test_version(self): + """Test `nikola version`.""" + CommandVersion().execute() |
