summaryrefslogtreecommitdiffstats
path: root/tests/test_plugin_importing.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:38 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:38 -0300
commit2828399ba5cbb14502b023d4de1ba02f13dd5055 (patch)
tree38012b6bacaa508ca56fb6f4ba87b912bb54b8c9 /tests/test_plugin_importing.py
parentca94afc07df55cb7fc6fe3b4f3011877b7881195 (diff)
Imported Upstream version 6.3.0upstream/6.3.0
Diffstat (limited to 'tests/test_plugin_importing.py')
-rw-r--r--tests/test_plugin_importing.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_plugin_importing.py b/tests/test_plugin_importing.py
index 5009f88..aaba113 100644
--- a/tests/test_plugin_importing.py
+++ b/tests/test_plugin_importing.py
@@ -1,7 +1,13 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
-from .context import nikola # NOQA
+# 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