mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Test for is_provider check for providers.Callable
This commit is contained in:
parent
65f47b1222
commit
3754c7a6c5
|
@ -465,6 +465,10 @@ class CallableTests(unittest.TestCase):
|
|||
Injection('arg2', 'a2'),
|
||||
Injection('arg3', 'a3'))
|
||||
|
||||
def test_is_provider(self):
|
||||
"""Test `is_provider` check."""
|
||||
self.assertTrue(is_provider(Callable(map)))
|
||||
|
||||
def test_call(self):
|
||||
"""Test provider call."""
|
||||
self.assertEqual(self.provider(), ('a1', 'a2', 'a3'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user