aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_command_init.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2013-11-20 16:58:53 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2013-11-20 16:58:53 -0300
commited33084d9bea84671449058af94a6e80dee714ba (patch)
tree8eee6e23cf8cac17bd31117a4839d3fd01a12249 /tests/test_command_init.py
parent6fb711e4ada5214f5923a81106176a257d1550a3 (diff)
parentca94afc07df55cb7fc6fe3b4f3011877b7881195 (diff)
Merge tag 'upstream/6.2.1'
Upstream version 6.2.1
Diffstat (limited to 'tests/test_command_init.py')
-rw-r--r--tests/test_command_init.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_command_init.py b/tests/test_command_init.py
index 1904fa1..a9ec208 100644
--- a/tests/test_command_init.py
+++ b/tests/test_command_init.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
+from __future__ import unicode_literals, absolute_import
-from context import nikola
+from .context import nikola
import unittest
import mock
@@ -12,18 +12,18 @@ class CommandInitCallTest(unittest.TestCase):
self.create_configuration = mock.MagicMock()
self.create_empty_site = mock.MagicMock()
copy_sample_site_patch = mock.patch(
- 'nikola.plugins.command_init.CommandInit.copy_sample_site', self.copy_sample_site)
+ 'nikola.plugins.command.init.CommandInit.copy_sample_site', self.copy_sample_site)
create_configuration_patch = mock.patch(
- 'nikola.plugins.command_init.CommandInit.create_configuration', self.create_configuration)
+ 'nikola.plugins.command.init.CommandInit.create_configuration', self.create_configuration)
create_empty_site_patch = mock.patch(
- 'nikola.plugins.command_init.CommandInit.create_empty_site', self.create_empty_site)
+ 'nikola.plugins.command.init.CommandInit.create_empty_site', self.create_empty_site)
self.patches = [copy_sample_site_patch,
create_configuration_patch, create_empty_site_patch]
for patch in self.patches:
patch.start()
- self.init_commad = nikola.plugins.command_init.CommandInit()
+ self.init_commad = nikola.plugins.command.init.CommandInit()
def tearDown(self):
for patch in self.patches: