Skip to content

Commit 1a51b29

Browse files
committed
Update tests
1 parent 6e11bee commit 1a51b29

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/unit/providers/test_async_py36.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,8 @@ class Container(containers.DeclarativeContainer):
245245

246246
with self.assertRaises(TypeError) as context:
247247
self._run(container.client())
248-
self.assertEqual(
249-
str(context.exception),
250-
"create_client() got an unexpected keyword argument 'resource1'",
251-
)
248+
self.assertIn("create_client() got", str(context.exception))
249+
self.assertIn("unexpected keyword argument", str(context.exception))
252250

253251
def test_attributes_injection(self):
254252
class ContainerWithAttributes(containers.DeclarativeContainer):

0 commit comments

Comments
 (0)