Browse Source

Fix imports to reflect `tests` folder not being a python package.

main
Lakshmi Narasimhan 9 years ago
parent
commit
2448c5aea1
6 changed files with 11 additions and 11 deletions
  1. +0
    -0
      tests/__init__.py
  2. +1
    -1
      tests/ext/test_grouper.py
  3. +1
    -1
      tests/ext/test_sass.py
  4. +1
    -1
      tests/ext/test_scss.py
  5. +1
    -1
      tests/ext/test_uglify.py
  6. +7
    -7
      tests/test_plugin.py

+ 0
- 0
tests/__init__.py View File


+ 1
- 1
tests/ext/test_grouper.py View File

@@ -12,7 +12,7 @@ from hyde.model import Config, Expando
from fswrap import File
import yaml

from ..util import assert_html_equals
from util import assert_html_equals

TEST_SITE = File(__file__).parent.parent.child_folder('_test')



+ 1
- 1
tests/ext/test_sass.py View File

@@ -9,7 +9,7 @@ from hyde.site import Site

from fswrap import File, Folder

from ..util import assert_no_diff
from util import assert_no_diff

SCSS_SOURCE = File(__file__).parent.child_folder('scss')
TEST_SITE = File(__file__).parent.parent.child_folder('_test')


+ 1
- 1
tests/ext/test_scss.py View File

@@ -9,7 +9,7 @@ from hyde.site import Site

from fswrap import File, Folder

from ..util import assert_no_diff
from util import assert_no_diff

SCSS_SOURCE = File(__file__).parent.child_folder('scss')
TEST_SITE = File(__file__).parent.parent.child_folder('_test')


+ 1
- 1
tests/ext/test_uglify.py View File

@@ -11,7 +11,7 @@ from hyde.site import Site

from fswrap import File, Folder

from ..util import assert_no_diff
from util import assert_no_diff

UGLIFY_SOURCE = File(__file__).parent.child_folder('uglify')
TEST_SITE = File(__file__).parent.parent.child_folder('_test')


+ 7
- 7
tests/test_plugin.py View File

@@ -68,7 +68,7 @@ class TestPlugins(object):

def setUp(self):
self.site = Site(TEST_SITE)
self.site.config.plugins = ['tests.test_plugin.PluginLoaderStub']
self.site.config.plugins = ['test_plugin.PluginLoaderStub']

def test_can_load_plugin_modules(self):
assert not len(self.site.plugins)
@@ -354,8 +354,8 @@ class TestPlugins(object):

def test_plugin_chaining(self):
self.site.config.plugins = [
'tests.test_plugin.ConstantReturnPlugin',
'tests.test_plugin.NoReturnPlugin'
'test_plugin.ConstantReturnPlugin',
'test_plugin.NoReturnPlugin'
]
path = self.site.content.source_folder.child('about.html')
gen = Generator(self.site)
@@ -372,8 +372,8 @@ class TestPlugins(object):
with patch.object(NoReturnPlugin, 'begin_text_resource',
new=Mock(wraps=empty_return)) as mock2:
self.site.config.plugins = [
'tests.test_plugin.ConstantReturnPlugin',
'tests.test_plugin.NoReturnPlugin'
'test_plugin.ConstantReturnPlugin',
'test_plugin.NoReturnPlugin'
]
self.site.config.constantreturn = Expando(
dict(include_file_pattern="*.css"))
@@ -400,8 +400,8 @@ class TestPlugins(object):
with patch.object(NoReturnPlugin, 'begin_text_resource',
new=Mock(wraps=empty_return)) as mock2:
self.site.config.plugins = [
'tests.test_plugin.ConstantReturnPlugin',
'tests.test_plugin.NoReturnPlugin'
'test_plugin.ConstantReturnPlugin',
'test_plugin.NoReturnPlugin'
]
self.site.config.constantreturn = Expando(
dict(include_paths="media"))


Loading…
Cancel
Save