Add tests.

This commit is contained in:
Alexandre Vicenzi 2016-01-15 01:10:17 -02:00
parent 7b58d0e748
commit c8a5b55c10
5 changed files with 93 additions and 0 deletions

3
.gitignore vendored
View file

@ -42,6 +42,7 @@ htmlcov/
nosetests.xml nosetests.xml
coverage.xml coverage.xml
*,cover *,cover
tests/output
# Translations # Translations
*.mo *.mo
@ -56,5 +57,7 @@ docs/_build/
# PyBuilder # PyBuilder
target/ target/
venv
# NPM # NPM
node_modules node_modules

9
.travis.yml Normal file
View file

@ -0,0 +1,9 @@
language: python
python:
- "2.7"
- "3.4"
install:
- pip install pelican markdown
script: pelican -s tests/pelicanconf.py
notifications:
email: false

View file

@ -0,0 +1,7 @@
Title: Some Article
Date: 2016-01-01 12:00
Modified: 2016-01-01 12:00
Tags: article, pelican, python
Slug: some-article
This is an article with category dev.

View file

@ -0,0 +1,5 @@
Title: About
Date: 2016-01-01 12:00
Modified: 2016-01-01 12:00
This is an about page.

69
tests/pelicanconf.py Normal file
View file

@ -0,0 +1,69 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Test'
SITEURL = u'http://localhost:8000'
SITENAME = u"Test Blog"
SITETITLE = AUTHOR
SITESUBTITLE = u'Test'
SITEDESCRIPTION = u'%s\'s Thoughts and Writings' % AUTHOR
SITELOGO = u'https://www.example.com/img/profile.png'
FAVICON = SITEURL + '/images/favicon.ico'
ROBOTS = u'index, follow'
THEME = u'../flex'
PATH = u'content'
TIMEZONE = u'America/Sao_Paulo'
DEFAULT_LANG = u'en'
OG_LOCALE = u'en_US'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
USE_FOLDER_AS_CATEGORY = True
MAIN_MENU = True
LINKS = (('Portfolio', '//alexandrevicenzi.com'),)
SOCIAL = (('linkedin', 'https://br.linkedin.com/in/test'),
('github', 'https://github.com/test'),
('google', 'https://google.com/+Test'),
('rss', '//www.example.com/feeds/all.atom.xml'))
MENUITEMS = (('Archives', '/archives.html'),
('Categories', '/categories.html'),
('Tags', '/tags.html'),)
CC_LICENSE = {
'name': 'Creative Commons Attribution-ShareAlike',
'version': '4.0',
'slug': 'by-sa'
}
COPYRIGHT_YEAR = 2016
DEFAULT_PAGINATION = 10
STATUSCAKE = {
'trackid': 'test-test',
'days': 7
}
RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
DELETE_OUTPUT_DIRECTORY = False
DISQUS_SITENAME = "test-test"
GOOGLE_ANALYTICS = "UA-XXXXXX-X"
ADD_THIS_ID = 'ra-XX3242XX'
USE_LESS = False