Skip to content
Myr

standard tox/travis config

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix pytest warning, don't prefix non-testcase classes with Test

authored by David Lord · committed by David Lord · parent d48cb21 · Browse files · 4 files+18 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+18 added−20 removed

  • tests:+4 added−4 removed
  • other:+14 added−16 removed

4 files+18 added−20 removed

modified:tests/test_ext.py+4 added-4 removed
97 unmodified lines
98)99newstyle_i18n_env.install_gettext_callables(gettext, ngettext, newstyle=True)100101102class TestExtension(Extension):102class ExampleExtension(Extension):103 tags = set(['test'])104 ext_attr = 42105106 def parse(self, parser):
99 unmodified lines
206 assert [x.strip() for x in tmpl.render(a=1, b=2).splitlines()] \207 == ['42 = 23', '1 = 2']208209 def test_extension_nodes(self):210 env = Environment(extensions=[TestExtension])210 env = Environment(extensions=[ExampleExtension])211 tmpl = env.from_string('{% test %}')212 assert tmpl.render() == 'False|42|23|{}'213214 def test_identifier(self):215 assert TestExtension.identifier == __name__ + '.TestExtension'215 assert ExampleExtension.identifier == __name__ + '.ExampleExtension'216217 def test_rebinding(self):218 original = Environment(extensions=[TestExtension])218 original = Environment(extensions=[ExampleExtension])219 overlay = original.overlay()220 for env in original, overlay:221 for ext in itervalues(env.extensions):222 assert ext.environment is env
245 unmodified lines
modified:.gitignore+7 added-5 removed
1*.so2docs/_build2docs/_build/3*.pyc4*.pyo5*.egg-info5*.egg-info/6*.egg7build8dist7build/8dist/9.DS_Store10.tox10.tox/11.cache/12.idea/
modified:.travis.yml+4 added-7 removed
modified:tox.ini+3 added-4 removed
1[tox]2envlist = py26, py27, pypy, py33, py34, py352envlist = py26,py27,pypy,py33,py34,py3534[testenv]5commands =6 py.test []5commands = py.test {posargs}67deps =9 pytest8 pytest