allow starting without reseting
This commit is contained in:
parent
82214d2bc2
commit
fae22fd872
1 changed files with 4 additions and 3 deletions
|
|
@ -29,10 +29,11 @@ class MockAWS(object):
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
def start(self):
|
def start(self, reset=True):
|
||||||
self.__class__.nested_count += 1
|
self.__class__.nested_count += 1
|
||||||
for backend in self.backends.values():
|
if reset:
|
||||||
backend.reset()
|
for backend in self.backends.values():
|
||||||
|
backend.reset()
|
||||||
|
|
||||||
if not HTTPretty.is_enabled():
|
if not HTTPretty.is_enabled():
|
||||||
HTTPretty.enable()
|
HTTPretty.enable()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue