mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-03-13 16:48:06 +03:00
Update tests
This commit is contained in:
parent
6e11bee9f1
commit
1a51b29cbe
|
@ -245,10 +245,8 @@ class FactoryTests(AsyncTestCase):
|
||||||
|
|
||||||
with self.assertRaises(TypeError) as context:
|
with self.assertRaises(TypeError) as context:
|
||||||
self._run(container.client())
|
self._run(container.client())
|
||||||
self.assertEqual(
|
self.assertIn("create_client() got", str(context.exception))
|
||||||
str(context.exception),
|
self.assertIn("unexpected keyword argument", str(context.exception))
|
||||||
"create_client() got an unexpected keyword argument 'resource1'",
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_attributes_injection(self):
|
def test_attributes_injection(self):
|
||||||
class ContainerWithAttributes(containers.DeclarativeContainer):
|
class ContainerWithAttributes(containers.DeclarativeContainer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user