UPD: improved tests.

This commit is contained in:
heinzel committed 2019-03-21 20:28:46 +01:00
1 parent 1bcd479304
commit dc37c110df
4 files changed
+62 -35

No files matched your search

+1 -3
View File
@@ -1,14 +1,12 @@
import datetime
import os
import sys
import time
import urllib
from unittest import skip, SkipTest
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.test import SimpleTestCase, TestCase, tag
from django.urls import reverse
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@@ -237,7 +235,7 @@ class ScreenshotTestCase(SeleniumTestCase):
title = location
base_name = u'{timestamp}-{prefix}{sequence}{title}.png'.format(
timestamp=datetime.datetime.now().strftime('%Y%m%d-%H%M%S'),
timestamp=datetime.datetime.now().strftime('%Y%m%d-%H%M%S.%f'),
prefix=self.screenshot_prefix,
sequence=sequence,
title=title,