python:
- "2.6"
- "2.7"
+ - pypy
- "3.3"
- "3.4"
- "3.5"
- - "pypy"
-
install:
- - pip install tox
+ - pip install tox
script:
- - tox -e \
- $(echo $TRAVIS_PYTHON_VERSION | sed 's/^\([0-9]\)\.\([0-9]\).*/py\1\2/')
-
+ - tox -e py
notifications:
email: false
irc:
channels:
- - "chat.freenode.net#pocoo"
+ - chat.freenode.net#pocoo
on_success: change
on_failure: always
use_notice: true
newstyle_i18n_env.install_gettext_callables(gettext, ngettext, newstyle=True)
-class TestExtension(Extension):
+class ExampleExtension(Extension):
tags = set(['test'])
ext_attr = 42
== ['42 = 23', '1 = 2']
def test_extension_nodes(self):
- env = Environment(extensions=[TestExtension])
+ env = Environment(extensions=[ExampleExtension])
tmpl = env.from_string('{% test %}')
assert tmpl.render() == 'False|42|23|{}'
def test_identifier(self):
- assert TestExtension.identifier == __name__ + '.TestExtension'
+ assert ExampleExtension.identifier == __name__ + '.ExampleExtension'
def test_rebinding(self):
- original = Environment(extensions=[TestExtension])
+ original = Environment(extensions=[ExampleExtension])
overlay = original.overlay()
for env in original, overlay:
for ext in itervalues(env.extensions):
[tox]
-envlist = py26, py27, pypy, py33, py34, py35
+envlist = py26,py27,pypy,py33,py34,py35
[testenv]
-commands =
- py.test []
+commands = py.test {posargs}
deps =
- pytest
+ pytest