mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
adding some tests
This commit is contained in:
parent
f706d998e7
commit
54f35a5d35
|
@ -11,6 +11,11 @@ class InjectionTest(unittest.TestCase):
|
|||
def test_init(self):
|
||||
"""Test Injection creation and initialization."""
|
||||
injection = Injection('some_arg_name', 'some_value')
|
||||
|
||||
self.assertEqual(injection.name, 'some_arg_name')
|
||||
self.assertEqual(injection.injectable, 'some_value')
|
||||
|
||||
def test_value_with_scalar_injectable(self):
|
||||
"""Test Injection value property."""
|
||||
injection = Injection('some_arg_name', 'some_value')
|
||||
self.assertEqual(injection.value, 'some_value')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user