Store screenshots on project path.
This commit is contained in:
parent
a6f829e66c
commit
4536d651ec
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue