From 2828399ba5cbb14502b023d4de1ba02f13dd5055 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Fri, 28 Feb 2014 08:49:38 -0300 Subject: Imported Upstream version 6.3.0 --- tests/test_command_import_wordpress.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/test_command_import_wordpress.py') diff --git a/tests/test_command_import_wordpress.py b/tests/test_command_import_wordpress.py index f215705..d12c7f6 100644 --- a/tests/test_command_import_wordpress.py +++ b/tests/test_command_import_wordpress.py @@ -1,11 +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 import nikola.plugins.command.import_wordpress from .base import BaseTestCase -- cgit v1.2.3