mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Removing reduce function references from tests
This commit is contained in:
parent
bac0bd499c
commit
4e4bcd4b23
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user