Fix context manager mock

This commit is contained in:
Liam Young
2021-01-25 11:47:42 +00:00
parent 5be8fc3771
commit 93a9aff927

View File

@@ -1392,7 +1392,7 @@ class TestAsyncOpenstackUtils(ut_utils.AioTestCase):
class AsyncContextManagerMock(test_mock):
async def __aenter__(self):
yield model_mock
return self
async def __aexit__(self, *args):
pass