Try to separate saved responses by backend

closes #661
This commit is contained in:
Laurent Bachelier 2012-02-01 20:07:55 +01:00
commit 03f65bb121
2 changed files with 10 additions and 4 deletions

View file

@ -227,6 +227,9 @@ class BaseBackend(object):
kwargs['proxy'] = os.environ['HTTP_PROXY']
kwargs['logger'] = self.logger
if self.BROWSER.SAVE_RESPONSES and self.BROWSER.responses_dirname:
kwargs.setdefault('responses_dirname', os.path.join(self.BROWSER.responses_dirname, self.name))
return self.BROWSER(*args, **kwargs)
@classmethod