diff options
| author | 2013-11-20 16:58:50 -0300 | |
|---|---|---|
| committer | 2013-11-20 16:58:50 -0300 | |
| commit | ca94afc07df55cb7fc6fe3b4f3011877b7881195 (patch) | |
| tree | d81e1f275aa77545f33740723f307a83dde2e0b4 /tests/test_command_init.py | |
| parent | f794eee787e9cde54e6b8f53e45d69c9ddc9936a (diff) | |
Imported Upstream version 6.2.1upstream/6.2.1
Diffstat (limited to 'tests/test_command_init.py')
| -rw-r--r-- | tests/test_command_init.py | 12 |
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: |
