e2e: cleanup, always take screenshots on teardown
This commit is contained in:
		| @ -1,9 +1,9 @@ | ||||
| """passbook e2e testing utilities""" | ||||
| from functools import lru_cache | ||||
| from os import makedirs | ||||
| from glob import glob | ||||
| from importlib.util import module_from_spec, spec_from_file_location | ||||
| from inspect import getmembers, isfunction | ||||
| from os import makedirs | ||||
|  | ||||
| from Cryptodome.PublicKey import RSA | ||||
| from django.apps import apps | ||||
| @ -55,8 +55,7 @@ class SeleniumTestCase(StaticLiveServerTestCase): | ||||
|         ) | ||||
|  | ||||
|     def tearDown(self): | ||||
|         if self.failureException: | ||||
|             self.driver.save_screenshot("out/{self.__class__.__name__}.png") | ||||
|         self.driver.save_screenshot(f"out/{self.__class__.__name__}.png") | ||||
|         self.driver.quit() | ||||
|         super().tearDown() | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer