Browse Source

Hoist tests out of the core package

Tests are not part of the core logic of Hyde, and they should not be
packaged as such.
main
Jon Banafato 9 years ago
parent
commit
0a9f3a7c68
100 changed files with 11 additions and 6 deletions
  1. +1
    -1
      MANIFEST.in
  2. +1
    -1
      tests/README.rst
  3. +0
    -0
      tests/__init__.py
  4. +0
    -0
      tests/ext/__init__.py
  5. +0
    -0
      tests/ext/combine/script.1.js
  6. +0
    -0
      tests/ext/combine/script.2.js
  7. +0
    -0
      tests/ext/combine/script.3.js
  8. +0
    -0
      tests/ext/images/landscape.jpg
  9. +0
    -0
      tests/ext/images/portrait.jpg
  10. +0
    -0
      tests/ext/less/expected-site.css
  11. +0
    -0
      tests/ext/less/inc/mixin.less
  12. +0
    -0
      tests/ext/less/inc/reset.css
  13. +0
    -0
      tests/ext/less/inc/vars.less
  14. +0
    -0
      tests/ext/less/site.less
  15. +0
    -0
      tests/ext/optipng/hyde-lt-b.png
  16. +0
    -0
      tests/ext/requirejs/app.js
  17. +0
    -0
      tests/ext/requirejs/lib/less.js
  18. +0
    -0
      tests/ext/requirejs/lib/more.js
  19. +0
    -0
      tests/ext/requirejs/main.js
  20. +0
    -0
      tests/ext/requirejs/rjs.conf
  21. +0
    -0
      tests/ext/scss/expected-sass.css
  22. +0
    -0
      tests/ext/scss/expected-site.css
  23. +0
    -0
      tests/ext/scss/inc/mixin.scss
  24. +0
    -0
      tests/ext/scss/inc/reset.css
  25. +0
    -0
      tests/ext/scss/inc/vars.scss
  26. +0
    -0
      tests/ext/scss/sass.scss
  27. +0
    -0
      tests/ext/scss/site.scss
  28. +0
    -0
      tests/ext/stylus/expected-site-compressed.css
  29. +0
    -0
      tests/ext/stylus/expected-site.css
  30. +0
    -0
      tests/ext/stylus/inc/mixin.styl
  31. +0
    -0
      tests/ext/stylus/inc/reset.css
  32. +0
    -0
      tests/ext/stylus/inc/vars.styl
  33. +0
    -0
      tests/ext/stylus/site.styl
  34. +0
    -0
      tests/ext/test_auto_extend.py
  35. +0
    -0
      tests/ext/test_blockdown.py
  36. +0
    -0
      tests/ext/test_combine.py
  37. +0
    -0
      tests/ext/test_depends.py
  38. +0
    -0
      tests/ext/test_drafts.py
  39. +0
    -0
      tests/ext/test_flattener.py
  40. +2
    -1
      tests/ext/test_grouper.py
  41. +0
    -0
      tests/ext/test_images.py
  42. +0
    -0
      tests/ext/test_less.py
  43. +0
    -0
      tests/ext/test_markings.py
  44. +0
    -0
      tests/ext/test_meta.py
  45. +0
    -0
      tests/ext/test_optipng.py
  46. +0
    -0
      tests/ext/test_paginator.py
  47. +0
    -0
      tests/ext/test_requirejs.py
  48. +2
    -1
      tests/ext/test_sass.py
  49. +2
    -1
      tests/ext/test_scss.py
  50. +0
    -0
      tests/ext/test_sorter.py
  51. +0
    -0
      tests/ext/test_stylus.py
  52. +0
    -0
      tests/ext/test_syntext.py
  53. +0
    -0
      tests/ext/test_tagger.py
  54. +0
    -0
      tests/ext/test_textlinks.py
  55. +3
    -1
      tests/ext/test_uglify.py
  56. +0
    -0
      tests/ext/test_urlcleaner.py
  57. +0
    -0
      tests/ext/uglify/expected-jquery-nc.js
  58. +0
    -0
      tests/ext/uglify/expected-jquery.js
  59. +0
    -0
      tests/ext/uglify/jquery.js
  60. +0
    -0
      tests/sites/test_grouper/alternate.yaml
  61. +0
    -0
      tests/sites/test_grouper/content/404.html
  62. +0
    -0
      tests/sites/test_grouper/content/about.html
  63. +0
    -0
      tests/sites/test_grouper/content/apple-touch-icon.png
  64. +0
    -0
      tests/sites/test_grouper/content/blog/installation.html
  65. +0
    -0
      tests/sites/test_grouper/content/blog/meta.yaml
  66. +0
    -0
      tests/sites/test_grouper/content/blog/overview.html
  67. +0
    -0
      tests/sites/test_grouper/content/blog/plugins.html
  68. +0
    -0
      tests/sites/test_grouper/content/blog/tags.html
  69. +0
    -0
      tests/sites/test_grouper/content/blog/templating.html
  70. +0
    -0
      tests/sites/test_grouper/content/crossdomain.xml
  71. +0
    -0
      tests/sites/test_grouper/content/favicon.ico
  72. +0
    -0
      tests/sites/test_grouper/content/media/css/site.css
  73. +0
    -0
      tests/sites/test_grouper/content/robots.txt
  74. +0
    -0
      tests/sites/test_grouper/info.yaml
  75. +0
    -0
      tests/sites/test_grouper/layout/base.html
  76. +0
    -0
      tests/sites/test_grouper/layout/blog/post.html
  77. +0
    -0
      tests/sites/test_grouper/layout/root.html
  78. +0
    -0
      tests/sites/test_grouper/site.yaml
  79. +0
    -0
      tests/sites/test_jinja/alternate.yaml
  80. +0
    -0
      tests/sites/test_jinja/content/404.html
  81. +0
    -0
      tests/sites/test_jinja/content/about.html
  82. +0
    -0
      tests/sites/test_jinja/content/apple-touch-icon.png
  83. +0
    -0
      tests/sites/test_jinja/content/blog/2010/december/merry-christmas.html
  84. +0
    -0
      tests/sites/test_jinja/content/crossdomain.xml
  85. +0
    -0
      tests/sites/test_jinja/content/favicon.ico
  86. +0
    -0
      tests/sites/test_jinja/content/media/css/site.css
  87. +0
    -0
      tests/sites/test_jinja/content/robots.txt
  88. +0
    -0
      tests/sites/test_jinja/info.yaml
  89. +0
    -0
      tests/sites/test_jinja/layout/base.html
  90. +0
    -0
      tests/sites/test_jinja/layout/blog/post.html
  91. +0
    -0
      tests/sites/test_jinja/layout/root.html
  92. +0
    -0
      tests/sites/test_jinja/site.yaml
  93. +0
    -0
      tests/sites/test_paginator/content/blog/angry-post.html
  94. +0
    -0
      tests/sites/test_paginator/content/blog/another-sad-post.html
  95. +0
    -0
      tests/sites/test_paginator/content/blog/happy-post.html
  96. +0
    -0
      tests/sites/test_paginator/content/blog/sad-post.html
  97. +0
    -0
      tests/sites/test_paginator/content/custom_file_pattern.txt
  98. +0
    -0
      tests/sites/test_paginator/content/empty.txt
  99. +0
    -0
      tests/sites/test_paginator/content/pages_of_one.txt
  100. +0
    -0
      tests/sites/test_paginator/content/pages_of_ten.txt

+ 1
- 1
MANIFEST.in View File

@@ -8,5 +8,5 @@ include requirements.txt
include dev-req.txt
include dev-only.txt
recursive-include hyde *.py
recursive-include hyde/tests *.py
recursive-include tests *.py
recursive-include hyde/layouts *.*

hyde/tests/README.rst → tests/README.rst View File

@@ -42,4 +42,4 @@ Run the tests
=============

::
nosetests hyde/tests
nosetests tests

hyde/tests/__init__.py → tests/__init__.py View File


hyde/tests/ext/__init__.py → tests/ext/__init__.py View File


hyde/tests/ext/combine/script.1.js → tests/ext/combine/script.1.js View File


hyde/tests/ext/combine/script.2.js → tests/ext/combine/script.2.js View File


hyde/tests/ext/combine/script.3.js → tests/ext/combine/script.3.js View File


hyde/tests/ext/images/landscape.jpg → tests/ext/images/landscape.jpg View File


hyde/tests/ext/images/portrait.jpg → tests/ext/images/portrait.jpg View File


hyde/tests/ext/less/expected-site.css → tests/ext/less/expected-site.css View File


hyde/tests/ext/less/inc/mixin.less → tests/ext/less/inc/mixin.less View File


hyde/tests/ext/less/inc/reset.css → tests/ext/less/inc/reset.css View File


hyde/tests/ext/less/inc/vars.less → tests/ext/less/inc/vars.less View File


hyde/tests/ext/less/site.less → tests/ext/less/site.less View File


hyde/tests/ext/optipng/hyde-lt-b.png → tests/ext/optipng/hyde-lt-b.png View File


hyde/tests/ext/requirejs/app.js → tests/ext/requirejs/app.js View File


hyde/tests/ext/requirejs/lib/less.js → tests/ext/requirejs/lib/less.js View File


hyde/tests/ext/requirejs/lib/more.js → tests/ext/requirejs/lib/more.js View File


hyde/tests/ext/requirejs/main.js → tests/ext/requirejs/main.js View File


hyde/tests/ext/requirejs/rjs.conf → tests/ext/requirejs/rjs.conf View File


hyde/tests/ext/scss/expected-sass.css → tests/ext/scss/expected-sass.css View File


hyde/tests/ext/scss/expected-site.css → tests/ext/scss/expected-site.css View File


hyde/tests/ext/scss/inc/mixin.scss → tests/ext/scss/inc/mixin.scss View File


hyde/tests/ext/scss/inc/reset.css → tests/ext/scss/inc/reset.css View File


hyde/tests/ext/scss/inc/vars.scss → tests/ext/scss/inc/vars.scss View File


hyde/tests/ext/scss/sass.scss → tests/ext/scss/sass.scss View File


hyde/tests/ext/scss/site.scss → tests/ext/scss/site.scss View File


hyde/tests/ext/stylus/expected-site-compressed.css → tests/ext/stylus/expected-site-compressed.css View File


hyde/tests/ext/stylus/expected-site.css → tests/ext/stylus/expected-site.css View File


hyde/tests/ext/stylus/inc/mixin.styl → tests/ext/stylus/inc/mixin.styl View File


hyde/tests/ext/stylus/inc/reset.css → tests/ext/stylus/inc/reset.css View File


hyde/tests/ext/stylus/inc/vars.styl → tests/ext/stylus/inc/vars.styl View File


hyde/tests/ext/stylus/site.styl → tests/ext/stylus/site.styl View File


hyde/tests/ext/test_auto_extend.py → tests/ext/test_auto_extend.py View File


hyde/tests/ext/test_blockdown.py → tests/ext/test_blockdown.py View File


hyde/tests/ext/test_combine.py → tests/ext/test_combine.py View File


hyde/tests/ext/test_depends.py → tests/ext/test_depends.py View File


hyde/tests/ext/test_drafts.py → tests/ext/test_drafts.py View File


hyde/tests/ext/test_flattener.py → tests/ext/test_flattener.py View File


hyde/tests/ext/test_grouper.py → tests/ext/test_grouper.py View File

@@ -10,9 +10,10 @@ from hyde.site import Site
from hyde.model import Config, Expando

from fswrap import File
from hyde.tests.util import assert_html_equals
import yaml

from ..util import assert_html_equals

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



hyde/tests/ext/test_images.py → tests/ext/test_images.py View File


hyde/tests/ext/test_less.py → tests/ext/test_less.py View File


hyde/tests/ext/test_markings.py → tests/ext/test_markings.py View File


hyde/tests/ext/test_meta.py → tests/ext/test_meta.py View File


hyde/tests/ext/test_optipng.py → tests/ext/test_optipng.py View File


hyde/tests/ext/test_paginator.py → tests/ext/test_paginator.py View File


hyde/tests/ext/test_requirejs.py → tests/ext/test_requirejs.py View File


hyde/tests/ext/test_sass.py → tests/ext/test_sass.py View File

@@ -6,10 +6,11 @@ Use nose
"""
from hyde.generator import Generator
from hyde.site import Site
from hyde.tests.util import assert_no_diff

from fswrap import File, Folder

from ..util import assert_no_diff

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


hyde/tests/ext/test_scss.py → tests/ext/test_scss.py View File

@@ -6,10 +6,11 @@ Use nose
"""
from hyde.generator import Generator
from hyde.site import Site
from hyde.tests.util import assert_no_diff

from fswrap import File, Folder

from ..util import assert_no_diff

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


hyde/tests/ext/test_sorter.py → tests/ext/test_sorter.py View File


hyde/tests/ext/test_stylus.py → tests/ext/test_stylus.py View File


hyde/tests/ext/test_syntext.py → tests/ext/test_syntext.py View File


hyde/tests/ext/test_tagger.py → tests/ext/test_tagger.py View File


hyde/tests/ext/test_textlinks.py → tests/ext/test_textlinks.py View File


hyde/tests/ext/test_uglify.py → tests/ext/test_uglify.py View File

@@ -4,12 +4,14 @@ Use nose
`$ pip install nose`
`$ nosetests`
"""

from hyde.model import Expando
from hyde.generator import Generator
from hyde.site import Site

from fswrap import File, Folder
from hyde.tests.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')

hyde/tests/ext/test_urlcleaner.py → tests/ext/test_urlcleaner.py View File


hyde/tests/ext/uglify/expected-jquery-nc.js → tests/ext/uglify/expected-jquery-nc.js View File


hyde/tests/ext/uglify/expected-jquery.js → tests/ext/uglify/expected-jquery.js View File


hyde/tests/ext/uglify/jquery.js → tests/ext/uglify/jquery.js View File


hyde/tests/sites/test_grouper/alternate.yaml → tests/sites/test_grouper/alternate.yaml View File


hyde/tests/sites/test_grouper/content/404.html → tests/sites/test_grouper/content/404.html View File


hyde/tests/sites/test_grouper/content/about.html → tests/sites/test_grouper/content/about.html View File


hyde/tests/sites/test_grouper/content/apple-touch-icon.png → tests/sites/test_grouper/content/apple-touch-icon.png View File


hyde/tests/sites/test_grouper/content/blog/installation.html → tests/sites/test_grouper/content/blog/installation.html View File


hyde/tests/sites/test_grouper/content/blog/meta.yaml → tests/sites/test_grouper/content/blog/meta.yaml View File


hyde/tests/sites/test_grouper/content/blog/overview.html → tests/sites/test_grouper/content/blog/overview.html View File


hyde/tests/sites/test_grouper/content/blog/plugins.html → tests/sites/test_grouper/content/blog/plugins.html View File


hyde/tests/sites/test_grouper/content/blog/tags.html → tests/sites/test_grouper/content/blog/tags.html View File


hyde/tests/sites/test_grouper/content/blog/templating.html → tests/sites/test_grouper/content/blog/templating.html View File


hyde/tests/sites/test_grouper/content/crossdomain.xml → tests/sites/test_grouper/content/crossdomain.xml View File


hyde/tests/sites/test_grouper/content/favicon.ico → tests/sites/test_grouper/content/favicon.ico View File


hyde/tests/sites/test_grouper/content/media/css/site.css → tests/sites/test_grouper/content/media/css/site.css View File


hyde/tests/sites/test_grouper/content/robots.txt → tests/sites/test_grouper/content/robots.txt View File


hyde/tests/sites/test_grouper/info.yaml → tests/sites/test_grouper/info.yaml View File


hyde/tests/sites/test_grouper/layout/base.html → tests/sites/test_grouper/layout/base.html View File


hyde/tests/sites/test_grouper/layout/blog/post.html → tests/sites/test_grouper/layout/blog/post.html View File


hyde/tests/sites/test_grouper/layout/root.html → tests/sites/test_grouper/layout/root.html View File


hyde/tests/sites/test_grouper/site.yaml → tests/sites/test_grouper/site.yaml View File


hyde/tests/sites/test_jinja/alternate.yaml → tests/sites/test_jinja/alternate.yaml View File


hyde/tests/sites/test_jinja/content/404.html → tests/sites/test_jinja/content/404.html View File


hyde/tests/sites/test_jinja/content/about.html → tests/sites/test_jinja/content/about.html View File


hyde/tests/sites/test_jinja/content/apple-touch-icon.png → tests/sites/test_jinja/content/apple-touch-icon.png View File


hyde/tests/sites/test_jinja/content/blog/2010/december/merry-christmas.html → tests/sites/test_jinja/content/blog/2010/december/merry-christmas.html View File


hyde/tests/sites/test_jinja/content/crossdomain.xml → tests/sites/test_jinja/content/crossdomain.xml View File


hyde/tests/sites/test_jinja/content/favicon.ico → tests/sites/test_jinja/content/favicon.ico View File


hyde/tests/sites/test_jinja/content/media/css/site.css → tests/sites/test_jinja/content/media/css/site.css View File


hyde/tests/sites/test_jinja/content/robots.txt → tests/sites/test_jinja/content/robots.txt View File


hyde/tests/sites/test_jinja/info.yaml → tests/sites/test_jinja/info.yaml View File


hyde/tests/sites/test_jinja/layout/base.html → tests/sites/test_jinja/layout/base.html View File


hyde/tests/sites/test_jinja/layout/blog/post.html → tests/sites/test_jinja/layout/blog/post.html View File


hyde/tests/sites/test_jinja/layout/root.html → tests/sites/test_jinja/layout/root.html View File


hyde/tests/sites/test_jinja/site.yaml → tests/sites/test_jinja/site.yaml View File


hyde/tests/sites/test_paginator/content/blog/angry-post.html → tests/sites/test_paginator/content/blog/angry-post.html View File


hyde/tests/sites/test_paginator/content/blog/another-sad-post.html → tests/sites/test_paginator/content/blog/another-sad-post.html View File


hyde/tests/sites/test_paginator/content/blog/happy-post.html → tests/sites/test_paginator/content/blog/happy-post.html View File


hyde/tests/sites/test_paginator/content/blog/sad-post.html → tests/sites/test_paginator/content/blog/sad-post.html View File


hyde/tests/sites/test_paginator/content/custom_file_pattern.txt → tests/sites/test_paginator/content/custom_file_pattern.txt View File


hyde/tests/sites/test_paginator/content/empty.txt → tests/sites/test_paginator/content/empty.txt View File


hyde/tests/sites/test_paginator/content/pages_of_one.txt → tests/sites/test_paginator/content/pages_of_one.txt View File


hyde/tests/sites/test_paginator/content/pages_of_ten.txt → tests/sites/test_paginator/content/pages_of_ten.txt View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save