There was an error while loading. Please reload this page.
1 parent 6e11bee commit 1a51b29Copy full SHA for 1a51b29
tests/unit/providers/test_async_py36.py
@@ -245,10 +245,8 @@ class Container(containers.DeclarativeContainer):
245
246
with self.assertRaises(TypeError) as context:
247
self._run(container.client())
248
- self.assertEqual(
249
- str(context.exception),
250
- "create_client() got an unexpected keyword argument 'resource1'",
251
- )
+ self.assertIn("create_client() got", str(context.exception))
+ self.assertIn("unexpected keyword argument", str(context.exception))
252
253
def test_attributes_injection(self):
254
class ContainerWithAttributes(containers.DeclarativeContainer):
0 commit comments