diff options
| author | 2014-02-28 08:49:41 -0300 | |
|---|---|---|
| committer | 2014-02-28 08:49:41 -0300 | |
| commit | 0f1e24f7888ba16fe5629c57fd00f0deacb63e5e (patch) | |
| tree | 7153a3a11b766f375b1d1c0a7adc599e0a9f9c55 /tests/test_command_init.py | |
| parent | 04fc43563d3d5d4218004690b5e14c19c67bdcbc (diff) | |
| parent | 2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff) | |
Merge tag 'upstream/6.3.0'
Upstream version 6.3.0
Diffstat (limited to 'tests/test_command_init.py')
| -rw-r--r-- | tests/test_command_init.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_command_init.py b/tests/test_command_init.py index a9ec208..04e7d5f 100644 --- a/tests/test_command_init.py +++ b/tests/test_command_init.py @@ -1,10 +1,17 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import -from .context import nikola +# 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 import mock +import nikola + class CommandInitCallTest(unittest.TestCase): def setUp(self): |
