mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Test for is_provider check for providers.ExternalDependency
This commit is contained in:
parent
3754c7a6c5
commit
3e3f782ab8
|
@ -377,6 +377,10 @@ class ExternalDependencyTests(unittest.TestCase):
|
|||
|
||||
"""ExternalDependency test cases."""
|
||||
|
||||
def test_is_provider(self):
|
||||
"""Test `is_provider` check."""
|
||||
self.assertTrue(is_provider(ExternalDependency(instance_of=object)))
|
||||
|
||||
def test_call_satisfied(self):
|
||||
"""Test call of satisfied external dependency."""
|
||||
provider = ExternalDependency(instance_of=object)
|
||||
|
|
Loading…
Reference in New Issue
Block a user