Store screenshots on project path.

This commit is contained in:
Santiago L 2021-02-12 13:34:00 +01:00
parent a6f829e66c
commit 4536d651ec
1 changed files with 13 additions and 13 deletions

View File

@ -119,7 +119,7 @@ class BaseLiveServerTestCase(AppDependencyMixin, LiveServerTestCase):
def take_screenshot(self):
timestamp = datetime.datetime.now().isoformat().replace(':', '')
filename = 'screenshot_%s_%s.png' % (self.id(), timestamp)
path = '/home/orchestra/snapshots'
path = settings.BASE_DIR
self.selenium.save_screenshot(os.path.join(path, filename))
def admin_delete(self, obj):