mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 19:14:00 +03:00
commit
946b1a240c
|
@ -10,3 +10,4 @@ env:
|
||||||
- TOXENV=pep257
|
- TOXENV=pep257
|
||||||
- TOXENV=py26
|
- TOXENV=py26
|
||||||
- TOXENV=py27
|
- TOXENV=py27
|
||||||
|
- TOXENV=py32
|
||||||
|
|
|
@ -380,9 +380,9 @@ class StaticProvidersTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_call_overridden_function_provider(self):
|
def test_call_overridden_function_provider(self):
|
||||||
"""Test overridden Function provider call."""
|
"""Test overridden Function provider call."""
|
||||||
function_provider = Function(map)
|
function_provider = Function(len)
|
||||||
function_provider.override(Function(reduce))
|
function_provider.override(Function(sum))
|
||||||
self.assertIs(function_provider(), reduce)
|
self.assertIs(function_provider(), sum)
|
||||||
|
|
||||||
def test_call_overridden_value_provider(self):
|
def test_call_overridden_value_provider(self):
|
||||||
"""Test overridden Value provider call."""
|
"""Test overridden Value provider call."""
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist=
|
envlist=
|
||||||
dev, coveralls, pylint, flake8, pep257, py26, py27
|
dev, coveralls, pylint, flake8, pep257, py26, py27, py32
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps=
|
deps=
|
||||||
|
@ -57,3 +57,8 @@ commands=
|
||||||
basepython=python2.7
|
basepython=python2.7
|
||||||
commands=
|
commands=
|
||||||
unit2 discover tests []
|
unit2 discover tests []
|
||||||
|
|
||||||
|
[testenv:py32]
|
||||||
|
basepython=python3.2
|
||||||
|
commands=
|
||||||
|
unit2 discover tests []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user