Have context manager return mock.
This commit is contained in:
parent
12aa5dddf7
commit
308712841c
2 changed files with 11 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ class BaseMockAWS(object):
|
|||
|
||||
def __enter__(self):
|
||||
self.start()
|
||||
return self
|
||||
|
||||
def __exit__(self, *args):
|
||||
self.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue