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