Bläddra i källkod

move tests to plugin folder

Deniz Turgut 11 år sedan
förälder
incheckning
c694cb404d
85 ändrade filer med 908 tillägg och 5 borttagningar
  1. 6 3
      tests/test_assets.py
  2. 0 0
      assets/test_data/static/css/style.min.css
  3. 0 0
      assets/test_data/static/css/style.scss
  4. 0 0
      assets/test_data/templates/base.html
  5. 0 0
      gzip_cache/test_gzip_cache.py
  6. 902 0
      pytestdebug.log
  7. 0 0
      summary/test_summary.py
  8. 0 2
      tests/__init__.py
  9. 0 0
      tests/content/2012-11-30_filename-metadata.rst
  10. 0 0
      tests/content/another_super_article-fr.rst
  11. 0 0
      tests/content/another_super_article.rst
  12. 0 0
      tests/content/article2-fr.rst
  13. 0 0
      tests/content/article2.rst
  14. 0 0
      tests/content/cat1/article1.rst
  15. 0 0
      tests/content/cat1/article2.rst
  16. 0 0
      tests/content/cat1/article3.rst
  17. 0 0
      tests/content/cat1/markdown-article.md
  18. 0 0
      tests/content/draft_article.rst
  19. 0 0
      tests/content/extra/robots.txt
  20. 0 0
      tests/content/pages/hidden_page.rst
  21. 0 0
      tests/content/pages/jinja2_template.html
  22. 0 0
      tests/content/pages/override_url_saveas.rst
  23. 0 0
      tests/content/pages/test_page.rst
  24. 0 0
      tests/content/pictures/Fat_Cat.jpg
  25. 0 0
      tests/content/pictures/Sushi.jpg
  26. 0 0
      tests/content/pictures/Sushi_Macro.jpg
  27. 0 0
      tests/content/super_article.rst
  28. 0 0
      tests/content/unbelievable.rst
  29. 0 0
      tests/content/unwanted_file
  30. 0 0
      tests/pelican.conf.py
  31. 0 0
      tests/themes/notmyidea/static/css/main.css
  32. 0 0
      tests/themes/notmyidea/static/css/pygment.css
  33. 0 0
      tests/themes/notmyidea/static/css/reset.css
  34. 0 0
      tests/themes/notmyidea/static/css/typogrify.css
  35. 0 0
      tests/themes/notmyidea/static/css/wide.css
  36. 0 0
      tests/themes/notmyidea/static/images/icons/aboutme.png
  37. 0 0
      tests/themes/notmyidea/static/images/icons/bitbucket.png
  38. 0 0
      tests/themes/notmyidea/static/images/icons/delicious.png
  39. 0 0
      tests/themes/notmyidea/static/images/icons/facebook.png
  40. 0 0
      tests/themes/notmyidea/static/images/icons/github.png
  41. 0 0
      tests/themes/notmyidea/static/images/icons/gitorious.png
  42. 0 0
      tests/themes/notmyidea/static/images/icons/gittip.png
  43. 0 0
      tests/themes/notmyidea/static/images/icons/google-groups.png
  44. 0 0
      tests/themes/notmyidea/static/images/icons/google-plus.png
  45. 0 0
      tests/themes/notmyidea/static/images/icons/hackernews.png
  46. 0 0
      tests/themes/notmyidea/static/images/icons/lastfm.png
  47. 0 0
      tests/themes/notmyidea/static/images/icons/linkedin.png
  48. 0 0
      tests/themes/notmyidea/static/images/icons/reddit.png
  49. 0 0
      tests/themes/notmyidea/static/images/icons/rss.png
  50. 0 0
      tests/themes/notmyidea/static/images/icons/slideshare.png
  51. 0 0
      tests/themes/notmyidea/static/images/icons/speakerdeck.png
  52. 0 0
      tests/themes/notmyidea/static/images/icons/twitter.png
  53. 0 0
      tests/themes/notmyidea/static/images/icons/vimeo.png
  54. 0 0
      tests/themes/notmyidea/static/images/icons/youtube.png
  55. 0 0
      tests/themes/notmyidea/templates/analytics.html
  56. 0 0
      tests/themes/notmyidea/templates/archives.html
  57. 0 0
      tests/themes/notmyidea/templates/article.html
  58. 0 0
      tests/themes/notmyidea/templates/article_infos.html
  59. 0 0
      tests/themes/notmyidea/templates/author.html
  60. 0 0
      tests/themes/notmyidea/templates/authors.html
  61. 0 0
      tests/themes/notmyidea/templates/base.html
  62. 0 0
      tests/themes/notmyidea/templates/category.html
  63. 0 0
      tests/themes/notmyidea/templates/comments.html
  64. 0 0
      tests/themes/notmyidea/templates/disqus_script.html
  65. 0 0
      tests/themes/notmyidea/templates/github.html
  66. 0 0
      tests/themes/notmyidea/templates/index.html
  67. 0 0
      tests/themes/notmyidea/templates/page.html
  68. 0 0
      tests/themes/notmyidea/templates/piwik.html
  69. 0 0
      tests/themes/notmyidea/templates/tag.html
  70. 0 0
      tests/themes/notmyidea/templates/taglist.html
  71. 0 0
      tests/themes/notmyidea/templates/translations.html
  72. 0 0
      tests/themes/notmyidea/templates/twitter.html
  73. 0 0
      tests/themes/simple/templates/archives.html
  74. 0 0
      tests/themes/simple/templates/article.html
  75. 0 0
      tests/themes/simple/templates/author.html
  76. 0 0
      tests/themes/simple/templates/base.html
  77. 0 0
      tests/themes/simple/templates/categories.html
  78. 0 0
      tests/themes/simple/templates/category.html
  79. 0 0
      tests/themes/simple/templates/gosquared.html
  80. 0 0
      tests/themes/simple/templates/index.html
  81. 0 0
      tests/themes/simple/templates/page.html
  82. 0 0
      tests/themes/simple/templates/pagination.html
  83. 0 0
      tests/themes/simple/templates/tag.html
  84. 0 0
      tests/themes/simple/templates/tags.html
  85. 0 0
      tests/themes/simple/templates/translations.html

+ 6 - 3
tests/test_assets.py

@@ -13,8 +13,12 @@ import subprocess
 from pelican import Pelican
 from pelican.settings import read_settings
 
+import pytest
+
+assets = pytest.importorskip("assets")
+
 CUR_DIR = os.path.dirname(__file__)
-THEME_DIR = os.path.join(CUR_DIR, 'test_data', 'themes', 'assets_theme')
+THEME_DIR = os.path.join(CUR_DIR, 'test_data')
 CSS_REF = open(os.path.join(THEME_DIR, 'static', 'css',
                             'style.min.css')).read()
 CSS_HASH = hashlib.md5(CSS_REF).hexdigest()[0:8]
@@ -58,11 +62,10 @@ class TestWebAssets(unittest.TestCase):
     """Base class for testing webassets."""
 
     def setUp(self, override=None):
-        import assets
         
         self.temp_path = mkdtemp(prefix='pelicantests.')
         settings = {
-            'PATH': os.path.join(CUR_DIR, 'test_data', 'content'),
+            'PATH': os.path.join(os.path.dirname(CUR_DIR), 'tests', 'content'),
             'OUTPUT_PATH': self.temp_path,
             'PLUGINS': [assets],
             'THEME': THEME_DIR,

tests/test_data/themes/assets_theme/static/css/style.min.css → assets/test_data/static/css/style.min.css


tests/test_data/themes/assets_theme/static/css/style.scss → assets/test_data/static/css/style.scss


tests/test_data/themes/assets_theme/templates/base.html → assets/test_data/templates/base.html


tests/test_gzip_cache.py → gzip_cache/test_gzip_cache.py


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 902 - 0
pytestdebug.log


tests/test_data/themes/test_summary.py → summary/test_summary.py


+ 0 - 2
tests/__init__.py

@@ -1,2 +0,0 @@
-import logging
-logging.getLogger().addHandler(logging.NullHandler())

tests/test_data/content/2012-11-30_filename-metadata.rst → tests/content/2012-11-30_filename-metadata.rst


tests/test_data/content/another_super_article-fr.rst → tests/content/another_super_article-fr.rst


tests/test_data/content/another_super_article.rst → tests/content/another_super_article.rst


tests/test_data/content/article2-fr.rst → tests/content/article2-fr.rst


tests/test_data/content/article2.rst → tests/content/article2.rst


tests/test_data/content/cat1/article1.rst → tests/content/cat1/article1.rst


tests/test_data/content/cat1/article2.rst → tests/content/cat1/article2.rst


tests/test_data/content/cat1/article3.rst → tests/content/cat1/article3.rst


tests/test_data/content/cat1/markdown-article.md → tests/content/cat1/markdown-article.md


tests/test_data/content/draft_article.rst → tests/content/draft_article.rst


tests/test_data/content/extra/robots.txt → tests/content/extra/robots.txt


tests/test_data/content/pages/hidden_page.rst → tests/content/pages/hidden_page.rst


tests/test_data/content/pages/jinja2_template.html → tests/content/pages/jinja2_template.html


tests/test_data/content/pages/override_url_saveas.rst → tests/content/pages/override_url_saveas.rst


tests/test_data/content/pages/test_page.rst → tests/content/pages/test_page.rst


tests/test_data/content/pictures/Fat_Cat.jpg → tests/content/pictures/Fat_Cat.jpg


tests/test_data/content/pictures/Sushi.jpg → tests/content/pictures/Sushi.jpg


tests/test_data/content/pictures/Sushi_Macro.jpg → tests/content/pictures/Sushi_Macro.jpg


tests/test_data/content/super_article.rst → tests/content/super_article.rst


tests/test_data/content/unbelievable.rst → tests/content/unbelievable.rst


tests/test_data/content/unwanted_file → tests/content/unwanted_file


tests/test_data/pelican.conf.py → tests/pelican.conf.py


tests/test_data/themes/notmyidea/static/css/main.css → tests/themes/notmyidea/static/css/main.css


tests/test_data/themes/notmyidea/static/css/pygment.css → tests/themes/notmyidea/static/css/pygment.css


tests/test_data/themes/notmyidea/static/css/reset.css → tests/themes/notmyidea/static/css/reset.css


tests/test_data/themes/notmyidea/static/css/typogrify.css → tests/themes/notmyidea/static/css/typogrify.css


tests/test_data/themes/notmyidea/static/css/wide.css → tests/themes/notmyidea/static/css/wide.css


tests/test_data/themes/notmyidea/static/images/icons/aboutme.png → tests/themes/notmyidea/static/images/icons/aboutme.png


tests/test_data/themes/notmyidea/static/images/icons/bitbucket.png → tests/themes/notmyidea/static/images/icons/bitbucket.png


tests/test_data/themes/notmyidea/static/images/icons/delicious.png → tests/themes/notmyidea/static/images/icons/delicious.png


tests/test_data/themes/notmyidea/static/images/icons/facebook.png → tests/themes/notmyidea/static/images/icons/facebook.png


tests/test_data/themes/notmyidea/static/images/icons/github.png → tests/themes/notmyidea/static/images/icons/github.png


tests/test_data/themes/notmyidea/static/images/icons/gitorious.png → tests/themes/notmyidea/static/images/icons/gitorious.png


tests/test_data/themes/notmyidea/static/images/icons/gittip.png → tests/themes/notmyidea/static/images/icons/gittip.png


tests/test_data/themes/notmyidea/static/images/icons/google-groups.png → tests/themes/notmyidea/static/images/icons/google-groups.png


tests/test_data/themes/notmyidea/static/images/icons/google-plus.png → tests/themes/notmyidea/static/images/icons/google-plus.png


tests/test_data/themes/notmyidea/static/images/icons/hackernews.png → tests/themes/notmyidea/static/images/icons/hackernews.png


tests/test_data/themes/notmyidea/static/images/icons/lastfm.png → tests/themes/notmyidea/static/images/icons/lastfm.png


tests/test_data/themes/notmyidea/static/images/icons/linkedin.png → tests/themes/notmyidea/static/images/icons/linkedin.png


tests/test_data/themes/notmyidea/static/images/icons/reddit.png → tests/themes/notmyidea/static/images/icons/reddit.png


tests/test_data/themes/notmyidea/static/images/icons/rss.png → tests/themes/notmyidea/static/images/icons/rss.png


tests/test_data/themes/notmyidea/static/images/icons/slideshare.png → tests/themes/notmyidea/static/images/icons/slideshare.png


tests/test_data/themes/notmyidea/static/images/icons/speakerdeck.png → tests/themes/notmyidea/static/images/icons/speakerdeck.png


tests/test_data/themes/notmyidea/static/images/icons/twitter.png → tests/themes/notmyidea/static/images/icons/twitter.png


tests/test_data/themes/notmyidea/static/images/icons/vimeo.png → tests/themes/notmyidea/static/images/icons/vimeo.png


tests/test_data/themes/notmyidea/static/images/icons/youtube.png → tests/themes/notmyidea/static/images/icons/youtube.png


tests/test_data/themes/notmyidea/templates/analytics.html → tests/themes/notmyidea/templates/analytics.html


tests/test_data/themes/notmyidea/templates/archives.html → tests/themes/notmyidea/templates/archives.html


tests/test_data/themes/notmyidea/templates/article.html → tests/themes/notmyidea/templates/article.html


tests/test_data/themes/notmyidea/templates/article_infos.html → tests/themes/notmyidea/templates/article_infos.html


tests/test_data/themes/notmyidea/templates/author.html → tests/themes/notmyidea/templates/author.html


tests/test_data/themes/notmyidea/templates/authors.html → tests/themes/notmyidea/templates/authors.html


tests/test_data/themes/notmyidea/templates/base.html → tests/themes/notmyidea/templates/base.html


tests/test_data/themes/notmyidea/templates/category.html → tests/themes/notmyidea/templates/category.html


tests/test_data/themes/notmyidea/templates/comments.html → tests/themes/notmyidea/templates/comments.html


tests/test_data/themes/notmyidea/templates/disqus_script.html → tests/themes/notmyidea/templates/disqus_script.html


tests/test_data/themes/notmyidea/templates/github.html → tests/themes/notmyidea/templates/github.html


tests/test_data/themes/notmyidea/templates/index.html → tests/themes/notmyidea/templates/index.html


tests/test_data/themes/notmyidea/templates/page.html → tests/themes/notmyidea/templates/page.html


tests/test_data/themes/notmyidea/templates/piwik.html → tests/themes/notmyidea/templates/piwik.html


tests/test_data/themes/notmyidea/templates/tag.html → tests/themes/notmyidea/templates/tag.html


tests/test_data/themes/notmyidea/templates/taglist.html → tests/themes/notmyidea/templates/taglist.html


tests/test_data/themes/notmyidea/templates/translations.html → tests/themes/notmyidea/templates/translations.html


tests/test_data/themes/notmyidea/templates/twitter.html → tests/themes/notmyidea/templates/twitter.html


tests/test_data/themes/simple/templates/archives.html → tests/themes/simple/templates/archives.html


tests/test_data/themes/simple/templates/article.html → tests/themes/simple/templates/article.html


tests/test_data/themes/simple/templates/author.html → tests/themes/simple/templates/author.html


tests/test_data/themes/simple/templates/base.html → tests/themes/simple/templates/base.html


tests/test_data/themes/simple/templates/categories.html → tests/themes/simple/templates/categories.html


tests/test_data/themes/simple/templates/category.html → tests/themes/simple/templates/category.html


tests/test_data/themes/simple/templates/gosquared.html → tests/themes/simple/templates/gosquared.html


tests/test_data/themes/simple/templates/index.html → tests/themes/simple/templates/index.html


tests/test_data/themes/simple/templates/page.html → tests/themes/simple/templates/page.html


tests/test_data/themes/simple/templates/pagination.html → tests/themes/simple/templates/pagination.html


tests/test_data/themes/simple/templates/tag.html → tests/themes/simple/templates/tag.html


tests/test_data/themes/simple/templates/tags.html → tests/themes/simple/templates/tags.html


tests/test_data/themes/simple/templates/translations.html → tests/themes/simple/templates/translations.html