admin: add generic form tests

This commit is contained in:
Jens Langhammer
2020-07-02 22:29:30 +02:00
parent b30b58924f
commit 1d9c92d548
3 changed files with 31 additions and 11 deletions

View File

@ -58,7 +58,9 @@ class SeleniumTestCase(StaticLiveServerTestCase):
)
def tearDown(self):
self.driver.save_screenshot(f"selenium_screenshots/{self.__class__.__name__}_{time()}.png")
self.driver.save_screenshot(
f"selenium_screenshots/{self.__class__.__name__}_{time()}.png"
)
for line in self.driver.get_log("browser"):
self.logger.warning(
line["message"], source=line["source"], level=line["level"]